in reply to Getting the System Temp Variable

Check out tmpdir() from File::Spec.
HTH

_________
broquaint

Replies are listed 'Best First'.
Re: Re: Getting the System Temp Variable
by slloyd (Hermit) on Apr 15, 2004 at 16:03 UTC
    tmpdir() returns the User TEMP setting, not the system TEMP setting.

      perhaps you should be more explicit about what you mean by the "System TEMP Environment Variable" or "the system TEMP setting".

      I, frankly, have no idea what you are talking about.

      There may be a default value of the $TEMP environment variable set on a system, but every OS I can think of lets uesrs override their environment variables.

      My guess is
      E:\>perl -le"$_=qq,$ENV{WINDIR}/temp,; print $_, q, => ,, -e $_;" E:\WINNT/temp => 1
      but it's just a guess, because I too have no clue what a "System Temp" directory is.

      MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
      I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
      ** The third rule of perl club is a statement of fact: pod is sexy.