On 2/1/01 2:50 PM, "John Delacour" <[EMAIL PROTECTED]> wrote:

> At 12:10 pm -0800 1/2/01, Todd Richmond wrote:
> 
> |   What's the best way to do temporary file creation? BioPerl seems to have
> |   chosen File::Temp, which requires File::Spec, which requires Errno.pm. The
> |   process fails at the end because 'archname' is not defined for MacOS.
> 
> I do 
> 
>       $tempdir = $ENV{TMPDIR};
>       mkdir $tempdir, 0; #creates if necessary
>       $fout = "$tempdir" . "temp.txt";
>       open FOUT, ">$fout";
>       

That's a bit simplistic. 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.). File::Temp would be perfect if it ran under MacOS.

-- 
Dr Todd Richmond                 http://cellwall.stanford.edu/todd
Carnegie Institution             email: [EMAIL PROTECTED]
Department of Plant Biology      fax: 1-650-325-6857
260 Panama Street                phone: 1-650-325-1521 x431
Stanford, CA 94305

Reply via email to