develooper Front page | perl.perl5.porters | Postings from January 2014

[perl #121033] [PATCH] Document read/write-only undef open

Nathan Glenn via RT
January 30, 2014 12:35
[perl #121033] [PATCH] Document read/write-only undef open
Message ID:
On Thu Jan 23 04:28:39 2014, tobyink wrote:
> """
> As a special case the three-argument form with the third argument
> being C<undef>:
> open(my $tmp, "+>", undef) or die ...
> opens a filehandle to an anonymous temporary file. An anonymous file
> can be opened in any mode, but opening it in read-write mode is likely
> to be the most useful. (If the file is open in read-write mode, you
> can write to it, then C<seek()> to the beginning of the file, and read
> back from it.)
> """

+1! (sorry for not responding in a while; could have sworn I sent an email).

Just another signature

via perlbug:  queue: perl5 status: open Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About