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

Re: New feature proposal : <<>> to disable magic open of ARGV

Thread Previous | Thread Next
From:
Eric Brine
Date:
July 31, 2014 14:46
Subject:
Re: New feature proposal : <<>> to disable magic open of ARGV
Message ID:
CALJW-qHUKqOqn5aCp_c2yWNxFOBer1zptzF9R5uEuy18gf=aKw@mail.gmail.com
On Wed, Jul 30, 2014 at 11:13 AM, Rafael Garcia-Suarez <rgs@consttype.org>
wrote:

> As Abigail pointed out that might be a bit difficult to implement.
> Unless we write it «» instead :)
>

Not hard, just backwards-incompatible and introduces a grammar ambiguity.

Have you ever seen anyone bit shift a heredoc?

... <<NUM >> 3 ...
4
NUM

And as ambiguities in Perl go, this would probably the mildest one.

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