X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FFile%2FSpec.pm;h=c43576b5fa95ddfc7c84f38fe9757eddc7d51aa1;hb=f93bb41e64f81800210e18ffedb5ed633e362495;hp=529e34fe84a99da283590738acd0b82cf9447e47;hpb=d835d33024e82f22ed1dd999cf6bd616a6eec9e9;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/File/Spec.pm b/lib/File/Spec.pm index 529e34f..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', @@ -125,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(); @@ -175,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 ); @@ -207,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 ); @@ -281,7 +281,7 @@ L =head1 AUTHORS Kenneth Albanowski , Andy Dougherty -, Andreas KEnig +, Andreas KEnig , Tim Bunce . OS/2 support by Ilya Zakharevich . @@ -290,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