1 package File
::Spec
::OS2
;
4 use vars
qw(@ISA $VERSION);
5 require File::Spec::Unix;
9 @ISA = qw(File::Spec::Unix);
19 sub file_name_is_absolute
{
20 my ($self,$file) = @_;
21 return scalar($file =~ m{^([a-z]:)?[\\/]}is);
25 my $path = $ENV{PATH
};
27 my @path = split(';',$path);
28 foreach (@path) { $_ = '.' if $_ eq '' }
34 return $tmpdir if defined $tmpdir;
36 foreach (@ENV{qw(TMPDIR TEMP TMP)}, qw(/tmp /)) {
37 next unless defined && -d
;
41 $tmpdir = '' unless defined $tmpdir;
43 $tmpdir = $self->canonpath($tmpdir);
52 File::Spec::OS2 - methods for OS/2 file specs
56 require File::Spec::OS2; # Done internally by File::Spec if needed
60 See File::Spec::Unix for a documentation of the methods provided
61 there. This package overrides the implementation of these methods, not