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

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

From:
Nathan Glenn via RT
Date:
January 30, 2014 12:35
Subject:
[perl #121033] [PATCH] Document read/write-only undef open
Message ID:
rt-4.0.18-14533-1390951684-1542.121033-15-0@perl.org
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
https://rt.perl.org/Ticket/Display.html?id=121033



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About