Subject: [ID
20020708.003] File::Spec::Unix::tmpdir automagically creates $ENV{TMPDIR}
Message-Id: <
200207082244.g68MiDY22791@pelf.harvard.edu>
p4raw-id: //depot/perl@17428
my $tmpdir;
sub tmpdir {
return $tmpdir if defined $tmpdir;
- my @dirlist = ($ENV{TMPDIR}, "/tmp");
+ my @dirlist = ( "/tmp" );
+ if ( exists $ENV{TMPDIR} )
{
+ unshift @dirlist, $ENV{TMPDIR};
no strict 'refs';
if (${"\cTAINT"}) { # Check for taint mode on perl >= 5.8.0
require Scalar::Util;