⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 os2.pm

📁 网页留言本,比一般的留言簿管用
💻 PM
字号:
package File::Spec::OS2;use strict;use vars qw(@ISA $VERSION);require File::Spec::Unix;$VERSION = '1.1';@ISA = qw(File::Spec::Unix);sub devnull {    return "/dev/nul";}sub case_tolerant {    return 1;}sub file_name_is_absolute {    my ($self,$file) = @_;    return scalar($file =~ m{^([a-z]:)?[\\/]}is);}sub path {    my $path = $ENV{PATH};    $path =~ s:\\:/:g;    my @path = split(';',$path);    foreach (@path) { $_ = '.' if $_ eq '' }    return @path;}my $tmpdir;sub tmpdir {    return $tmpdir if defined $tmpdir;    my $self = shift;    foreach (@ENV{qw(TMPDIR TEMP TMP)}, qw(/tmp /)) {	next unless defined && -d;	$tmpdir = $_;	last;    }    $tmpdir = '' unless defined $tmpdir;    $tmpdir =~ s:\\:/:g;    $tmpdir = $self->canonpath($tmpdir);    return $tmpdir;}1;__END__=head1 NAMEFile::Spec::OS2 - methods for OS/2 file specs=head1 SYNOPSIS require File::Spec::OS2; # Done internally by File::Spec if needed=head1 DESCRIPTIONSee File::Spec::Unix for a documentation of the methods providedthere. This package overrides the implementation of these methods, notthe semantics.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -