Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to choose between read-write and write-only mode [rt.cpan.org #99444] #18

Open
xdg opened this issue Apr 3, 2016 · 1 comment · May be fixed by #28
Open

Add option to choose between read-write and write-only mode [rt.cpan.org #99444] #18

xdg opened this issue Apr 3, 2016 · 1 comment · May be fixed by #28
Labels

Comments

@xdg
Copy link
Contributor

xdg commented Apr 3, 2016

https://rt.cpan.org/Ticket/Display.html?id=99444

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.
@xdg xdg added the wishlist label Apr 3, 2016
@Leont
Copy link
Member

Leont commented Apr 8, 2016

Sounds reasonable to me, having some way to pass the mode would be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants