> For temp files, you may try using time, plus users IP, that would near 0% that you 
>will have the risk to write to an existed file...

You can also use the process ID (PID) of the perl script as part of the filename. This 
is stored in the $$ variable:

my $tempfile = "/tmp/myscript.$$.tmp";  # Creates a file similar to 
/tmp/myscript.27728.tmp

It's also wise to clean up the tempfiles at the end of using them:

unlink($tempfile);


=-= Robert T.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to