X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FFile%2FSpec.pm;h=c43576b5fa95ddfc7c84f38fe9757eddc7d51aa1;hb=f93bb41e64f81800210e18ffedb5ed633e362495;hp=3ac1060f0cfe203f171ea5459fdd6c52563f8dab;hpb=ffa8448bc38bf8fb99d7d31a9115b53e3cafbc5f;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/File/Spec.pm b/lib/File/Spec.pm index 3ac1060..c43576b 100644 --- a/lib/File/Spec.pm +++ b/lib/File/Spec.pm @@ -1,9 +1,9 @@ package File::Spec; use strict; -our(@ISA, $VERSION); +use vars qw(@ISA $VERSION); -$VERSION = 0.83 ; +$VERSION = '0.86'; my %module = (MacOS => 'Mac', MSWin32 => 'Win32', @@ -11,6 +11,7 @@ my %module = (MacOS => 'Mac', VMS => 'VMS', epoc => 'Epoc', NetWare => 'Win32', # Yes, File::Spec::Win32 works on NetWare. + dos => 'OS2', # Yes, File::Spec::OS2 works on DJGPP. cygwin => 'Cygwin'); @@ -124,10 +125,10 @@ Returns a string representation of the root directory. =item tmpdir Returns a string representation of the first writable directory from a -list of possible temporary directories. Returns "" if no writable -temporary directories are found. The list of directories checked -depends on the platform; e.g. File::Spec::Unix checks $ENV{TMPDIR} and -/tmp. +list of possible temporary directories. Returns the current directory +if no writable temporary directories are found. The list of directories +checked depends on the platform; e.g. File::Spec::Unix checks $ENV{TMPDIR} +(unless taint is on) and /tmp. $tmpdir = File::Spec->tmpdir(); @@ -174,7 +175,7 @@ join is the same as catfile. =item splitpath Splits a path in to volume, directory, and filename portions. On systems -with no concept of volume, returns undef for volume. +with no concept of volume, returns '' for volume. ($volume,$directories,$file) = File::Spec->splitpath( $path ); ($volume,$directories,$file) = File::Spec->splitpath( $path, $no_file ); @@ -206,7 +207,7 @@ on some OSs. =item catpath() Takes volume, directory and file portions and returns an entire path. Under -Unix, $volume is ignored, and directory and file are catenated. A '/' is +Unix, $volume is ignored, and directory and file are concatenated. A '/' is inserted if need be. On other OSs, $volume is significant. $full_path = File::Spec->catpath( $volume, $directory, $file ); @@ -280,7 +281,7 @@ L =head1 AUTHORS Kenneth Albanowski , Andy Dougherty -, Andreas KEnig +, Andreas KEnig , Tim Bunce . OS/2 support by Ilya Zakharevich . @@ -289,3 +290,5 @@ Mac support by Paul Schinder , and Thomas Wegner Yamaguchi , modified by Barrie Slaymaker . splitpath(), splitdir(), catpath() and catdir() by Barrie Slaymaker. + +=cut