develooper Front page | perl.perl5.porters | Postings from December 2011

Why can't open() do an exclusive open?

Thread Next
Leon Timmermans
December 5, 2011 04:38
Why can't open() do an exclusive open?
Message ID:
Is there any reason why can't open do an exclusive open? Of course
that's possible with sysopen and O_EXCL, but that's plain ugly and
hard to explain to newcomers. I'm having the impression that the only
reason we don't have it is that stdio doesn't have it, which is not a
particularly good reason anymore IMNSHO. Is there anything opposed to
adding something like «open my $fh, '>!', $filename»?


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