summaryrefslogtreecommitdiff
path: root/lib/File/Spec.pm
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-03-14 13:42:32 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-03-14 13:42:32 +0000
commit07824bd1cfb16e641e5040a9a4e23799f5535a53 (patch)
tree94d58132d4adec2beef7fb3afdd83a4defd65e7d /lib/File/Spec.pm
parent7f1236c00d2708a214ae3f72897a3a14ec6d9792 (diff)
downloadperl-07824bd1cfb16e641e5040a9a4e23799f5535a53.tar.gz
Cleanup the File::Spec tmpdir() implementations:
now all the platforms specific modules call _tmpdir() (inherited from Unix.pm) with the list of platform specific list of temporary directories, and _tmpdir() then does the appropriate suitability checking. p4raw-id: //depot/perl@18980
Diffstat (limited to 'lib/File/Spec.pm')
-rw-r--r--lib/File/Spec.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/File/Spec.pm b/lib/File/Spec.pm
index e8b40808ad..d3a2987b0f 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.84 ;
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();