develooper Front page | perl.perl5.porters | Postings from October 2016

Re: Temporary files with open my $fh, ">", undef;

Thread Previous | Thread Next
From:
Andy Lester
Date:
October 26, 2016 18:48
Subject:
Re: Temporary files with open my $fh, ">", undef;
Message ID:
B609A8A1-973F-449A-A7BC-C27000390D17@petdance.com

> On Oct 26, 2016, at 11:09 AM, Dan Book <grinnz@gmail.com> wrote:
> 
> My assumption would be that they aren't mentioned because opening it for only reading is useless because it doesn't exist, and for only writing is useless because you don't know what its filename is; you might as well just open the handle to /dev/null.
> 


I’m thinking that adding that specifically would be worth noting, just for the sake of completeness, if the behavior isn’t a bug itself.

--
Andy Lester => www.petdance.com


Thread Previous | Thread Next


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