Skip Menu |
 

This queue is for tickets about the File-Temp CPAN distribution.

Report information
The Basics
Id: 69052
Status: open
Priority: 0/
Queue: File-Temp

People
Owner: Nobody in particular
Requestors: cyril.scetbon [...] free.fr
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.22
Fixed in: (no value)



Subject: delete file when UNLINK=0
Download (untitled) / with headers
text/plain 460b
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
Ticket migrated to github as http://example.com/issue/1234


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.