| Store | Cart

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

From: David Nicol <davi...@gmail.com>
Tue, 29 Jul 2014 20:07:44 -0500
>> > literal construct <<>> iterate.  Awesome.  I think we're going to want a>> > better error message, if possible, though, than:>> >>> >   ~/code/perl5$ ./perl -e 'while (<<ARGV>>) { print }' 'ls |'>> >   Can't find string terminator "ARGV" anywhere before EOF at -e line 1.>>>> That may be hard, as this:>>>>     while (<<ARGV>>3) {print}>>     ARGV>>>> is legal syntax.>> Yeah, the error that I got made it clear that it would be tricky.  If we can't,> we can't, but if we can, we should.  (For non-absurd-effort levels of "can".)

somewhere in this archive is a patch I submitted once to allow
whitespace between a
left-shift that begins an expression and a bareword that isn't an
infix operator (to allow
using the deprecated empty terminator, which is what that always
confusingly misparses as,
to precede C<le> for instance) and that might be a good starting place

Recent Messages in this Thread
Rafael Garcia-Suarez Jul 24, 2014 03:51 pm
Ricardo Signes Jul 24, 2014 05:13 pm
Kent Fredric Jul 24, 2014 07:27 pm
Abigail Jul 24, 2014 08:15 pm
Rafael Garcia-Suarez Jul 24, 2014 08:20 pm
Ed Avis Jul 25, 2014 07:00 am
Rafael Garcia-Suarez Jul 24, 2014 08:06 pm
Ed Avis Jul 25, 2014 07:22 am
Rafael Garcia-Suarez Jul 25, 2014 07:27 am
Abigail Jul 25, 2014 09:44 am
Peter Martini Jul 27, 2014 01:50 pm
Abigail Jul 27, 2014 05:55 pm
Aristotle Pagaltzis Jul 27, 2014 10:44 pm
Uri Guttman Jul 27, 2014 11:00 pm
Abigail Jul 28, 2014 09:02 am
Ricardo Signes Jul 26, 2014 11:16 pm
Rafael Garcia-Suarez Jul 27, 2014 07:19 am
Smylers Jul 27, 2014 09:03 am
Ricardo Signes Jul 27, 2014 01:31 pm
Smylers Jul 27, 2014 07:21 am
demerphq Jul 25, 2014 06:13 am
Kent Fredric Jul 25, 2014 06:26 am
Ricardo Signes Jul 26, 2014 10:38 pm
Abigail Jul 27, 2014 06:19 pm
Ricardo Signes Jul 27, 2014 10:10 pm
Dave Mitchell Jul 27, 2014 07:23 am
Dave Mitchell Jul 27, 2014 07:32 am
Eric Brine Jul 24, 2014 08:20 pm
Rafael Garcia-Suarez Jul 24, 2014 08:23 pm
Eric Brine Jul 25, 2014 02:58 am
demerphq Jul 25, 2014 06:10 am
Peter Martini Jul 27, 2014 02:11 pm
Rafael Garcia-Suarez Jul 27, 2014 02:19 pm
Ed Avis Jul 28, 2014 02:06 am
Ricardo Signes Jul 29, 2014 09:54 pm
Abigail Jul 29, 2014 10:34 pm
Ricardo Signes Jul 30, 2014 12:04 am
David Nicol Jul 30, 2014 01:07 am
Rafael Garcia-Suarez Jul 30, 2014 03:13 pm
Eric Brine Jul 31, 2014 02:46 pm
David Nicol Jul 31, 2014 02:54 pm
Eric Brine Jul 31, 2014 04:29 pm
bulk88 Jul 31, 2014 04:57 pm
Messages in this thread