develooper Front page | perl.perl5.porters | Postings from July 2013

File::Spec->tmpdir

Thread Next
From:
H.Merijn Brand
Date:
July 26, 2013 11:30
Subject:
File::Spec->tmpdir
Message ID:
20130726133038.490727fd@pc09.procura.nl
  tmpdir
    Returns a string representation of the first writable directory from
    a 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 ();

I just encountered a situation (Strawberry Portable) where the returned
value is "C:\Temp" and C:\Temp does NOT exist.

Is that worth tracing?

-- 
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.19   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About