|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.