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:
Kent Fredric
Date:
July 24, 2014 19:27
Subject:
Re: New feature proposal : <<>> to disable magic open of ARGV
Message ID:
CAATnKFCy4FETkt1SYnm+1y8_7sXHC1Bun8gw6RPxwvjT0pgjfg@mail.gmail.com
On 25 July 2014 05:13, Ricardo Signes <perl.p5p@rjbs.manxome.org> wrote:

> I like the feature, but I think it might be too small a change to pick up
> a new
> operator.  What about a pragma/feature?
>

+1 on pragma/featurizing it.

I'm half of the mind that <> allowing pipe opens constitutes a kind of bug
in itself.

So a lexical pragma that turns on/off that behavior seems more sensible
than new syntax, and once we do that, we can discuss whether or not the
pragma should default on/off somehow in a future perl.


-- 
Kent

*KENTNL* - https://metacpan.org/author/KENTNL

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