On Thu, Jul 30, 2009 at 1:19 AM, Rafael Garcia-Suarez<rgarciasuarez@gmail.com> wrote: > 2009/7/30 David Nicol <davidnicol@gmail.com>: >> it's already a synbtax error when it makes no sense. What's the harm? > > No it's not : > > $ perl -e 'goto print' > Can't find label 1 at -e line 1. $ perl -le '1: $x++ > 3 and die 1; goto print $x' syntax error at -e line 1, near "1:" Execution of -e aborted due to compilation errors. is there a way to create "1" as a label? perldoc perlsyn says labels "consist of an identifer followed by a colon" but the word "identifier" does not appear again in that document. Allowing numeric labels would make Perl more friendly to FORTRAN programmers...Thread Previous | Thread Next