Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: cornucopia [...] gmx-topmail.de
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: [File::Temp] Add option to choose between read-write and write-only mode
Date: Sun, 12 Oct 2014 11:28:33 +0200
To: bug-File-Temp [...] rt.cpan.org
From: cornucopia [...] gmx-topmail.de
File::Temp currently opens temporary files with O_RDWR. This makes it impossible to use it with PerlIO::gzip (i.e. set binmode gzip) because the latter only works with read-only or write-only file descriptors. Therefore it would be very useful to have an option to set write-only mode. I don't think that read-only would make much sense because then you could only read from an empty file.
Ticket migrated to github as http://example.com/issue/1234