in reply to Re: Getting the System Temp Variable
in thread Getting the System Temp Variable

tmpdir() returns the User TEMP setting, not the system TEMP setting.
  • Comment on Re: Re: Getting the System Temp Variable

Replies are listed 'Best First'.
Re: Re: Re: Getting the System Temp Variable
by hossman (Prior) on Apr 15, 2004 at 23:48 UTC

    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.

Re: Re: Re: Getting the System Temp Variable
by PodMaster (Abbot) on Apr 16, 2004 at 07:29 UTC
    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.