Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Data::UUID wants _STDIR equals C:/tmp or %temp%, what is a better alternative?

Replies are listed 'Best First'.
Re: Data::UUID -D_STDIR= C:/tmp
by GrandFather (Saint) on Oct 18, 2009 at 07:54 UTC

    Define 'better'. I notice the documentation for Data::UUID doesn't mention _STDIR - maybe you need to tell us what that is and how you are using it?


    True laziness is hard work
      It is constant from Makefile.PL for default store uuid data. better is something more general , not C:/tmp or %temp%

      Thanks

        C:/tmp or %temp% seems to be a perfectly good and usual place to store some temporary data. What alternatives did you have in mind?

        CountZero

        A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Re: Data::UUID -D_STDIR= C:/tmp
by cdarke (Prior) on Oct 19, 2009 at 08:31 UTC
    You could set the temp environment variable yourself from the command-line 'set temp=.'. Setting temp using $ENV{temp} might not work, depending on how the module grabs the environment variable. ENV::C can sometime help with that.

    %USERPROFILE% might be a better bet than %ALLUSERPROFILE%, or even %HOMEPATH%.