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

Re: [PATCH] [DOCS] Modernize perlopentut.pod

Thread Previous | Thread Next
From:
Jesse Luehrs
Date:
July 19, 2011 20:41
Subject:
Re: [PATCH] [DOCS] Modernize perlopentut.pod
Message ID:
20110720034111.GW26428@tozt.net
On Tue, Jul 19, 2011 at 11:32:13PM -0400, George Greer wrote:
> My only regret about 3-arg open is it makes me re-add logic to handle "-" 
> for stdin/stdout and I'm sure a number of programs would greatly benefit  
> from having that work automatically.

On the other hand, there are other cases where not being able to open an
actual file named '-' would also be regrettable (consider the parallel
in bash where someone has a file called '-rf', for instance). Logic like
this belongs in a higher layer, in order to avoid surprises like this.

-doy

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