Subject: | delete file when UNLINK=0 |
File::Temp should report a warning to say that it'll delete the
temporary file although the option UNLINK=0 has been provided
Here is an exemple :
use File::Temp qw/tempfile/;
my $fh = tempfile( 'ParsedFileXXXX',DIR => '/tmp',UNLINK => 0,SUFFIX =>
'.xml');
print $fh "test\n";
close $fh;
in the documentation, you say that in scalar context the file is always
deleted. However, it does underline the fact that even if the UNLINK
option is used.
thanks