From 6d777319a259846b6241779c2d5108d0ddffef71 Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Sun, 20 Aug 2000 08:43:08 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'perl5-vendor-v5_006_00_01'. --- contrib/perl5/lib/File/Spec/OS2.pm | 59 -------------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 contrib/perl5/lib/File/Spec/OS2.pm (limited to 'contrib/perl5/lib/File/Spec/OS2.pm') diff --git a/contrib/perl5/lib/File/Spec/OS2.pm b/contrib/perl5/lib/File/Spec/OS2.pm deleted file mode 100644 index 33370f06c1959..0000000000000 --- a/contrib/perl5/lib/File/Spec/OS2.pm +++ /dev/null @@ -1,59 +0,0 @@ -package File::Spec::OS2; - -use strict; -use vars qw(@ISA); -require File::Spec::Unix; -@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 NAME - -File::Spec::OS2 - methods for OS/2 file specs - -=head1 SYNOPSIS - - require File::Spec::OS2; # Done internally by File::Spec if needed - -=head1 DESCRIPTION - -See File::Spec::Unix for a documentation of the methods provided -there. This package overrides the implementation of these methods, not -the semantics. -- cgit v1.2.3