Cool File & Directory Modules File::Spec 52 of 69 : prev | index | next

File::Spec

tmpdir

  use File::Spec;
  $tmpdir = File::Spec->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.


© 2003 Barbie - barbie@missbarbell.co.uk contents http://birmingham.pm.org/