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

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

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
September 30, 2014 13:41
Subject:
Re: New feature proposal : <<>> to disable magic open of ARGV
Message ID:
CAMoYMM88ChN+h_HomgG7AYanmpdH7HbE0FMtRUMduQH_jFGYjA@mail.gmail.com
On 30 September 2014 15:05, Father Chrysostomos <sprout@cpan.org> wrote:
> Rafael Garcia-Suarez wrote:
>> I have now merged this in blead, with more tests, and docs by Peter Martini
>> and myself. I also added tests for the $ARGV variable, that was not tested.
>
> It looks as though you have changed the behaviour of eof(), though I
> have not tried building it yet.

Maybe, but I don't see where? By the way, I just pushed a test
involving eof and <<>> as ad77c200c8a4ed. eof() (with empty parentheses)
still continues to open the next file the old way.

> Would it not be better to flag in GvEGVx(PL_argvgv) to remember which
> of <>/<<>> was last used?  There is plenty of room in GvFLAGS.

What would that solve? The point is that <> and <<>> differ on how they
open the next upcoming file. This is not a property of ARGV.

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