At 4:00 pm -0800 1/2/01, Todd Richmond wrote:
| On 2/1/01 2:50 PM, "John Delacour" <[EMAIL PROTECTED]> wrote:
| > $tempdir = $ENV{TMPDIR};
| > mkdir $tempdir, 0; #creates if necessary
| > $fout = "$tempdir" . "temp.txt";
| > open FOUT, ">$fout";
| >
|
| That's a bit simplistic.
I didn't want to write a thesis on it. Where do you propose to make your temp files
other than in the temporary items directory?
| You need a solution that will create as many unique
| tempfiles as you need (with some checking to make sure that there's enough
| space, etc.).
Obviously, and so long as you don't foresee creating more than 26 per second, then a
combination of time and a letter of the alphabet will see to the filenames. I don't
see the need for any pre-cooked module.
File::Temp would be perfect if it ran under MacOS.
No doubt.
JD