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

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

Thread Previous | Thread Next
Andy Lester
October 26, 2016 18:48
Re: Temporary files with open my $fh, ">", undef;
Message ID:

> On Oct 26, 2016, at 11:09 AM, Dan Book <> 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 =>

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About