This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Introduce the double-diamond operator <<>>
authorRafael Garcia-Suarez <rgs@consttype.org>
Thu, 24 Jul 2014 15:43:29 +0000 (17:43 +0200)
committerRafael Garcia-Suarez <rgs@consttype.org>
Tue, 30 Sep 2014 06:17:50 +0000 (08:17 +0200)
commit157fb5a14d10ed16ffc6ebfc43d2637a016fdfce
treeb2410287e269d41f3295678586e62ce4fa459188
parentf276fdad8f6660f36944c895587a7748585e4969
Introduce the double-diamond operator <<>>

This operator works like <> or <ARGV>, as it reads the list of file
names to open from the command-line arguments. However, it disables
the magic-open feature (that forks to execute piped commands) :

    $ bleadperl -e 'while(<>){print}' 'echo foo |'
    foo
    $ bleadperl -e 'while(<<>>){print}' 'echo foo |'
    Can't open echo foo |: No such file or directory at -e line 1.
doio.c
embed.fnc
embed.h
op.c
pp_hot.c
pp_sys.c
proto.h
toke.c