On Sat, Feb 2, 2013 at 9:24 PM, David Golden <da...@autopragmatic.com>wrote:
> By default, tempfile creates in cwd, which could easily be on NFS. Eh? Oh, that kind of default ... $ perldoc File::Temp | grep -B5 -A1 ', as specified' ; perl -mFile::Spec -E 'say "On my system, ", File::Spec->tmpdir' $fh = tempfile(); ($fh, $filename) = tempfile(); Create a temporary file in the directory specified for temporary files, as specified by the tmpdir() function in File::Spec. On my system, /tmp $ But, File::Spec->tmpdir returns "the current directory if no writable temporary directories are found." Okay, that's a default, in a sense. But it is also a pretty flaky system, with cwd on NFS and no writable temporary directory provided. Eirik