develooper Front page | perl.perl5.porters | Postings from June 2011

RFC: Allow bare ‘continue;’ without

Thread Next
Father Chrysostomos
June 12, 2011 16:12
RFC: Allow bare ‘continue;’ without
Message ID:
$ perl5.14.0 -e 'continue;'
syntax error at -e line 1, near "continue"
Execution of -e aborted due to compilation errors.

I thought the whole purpose of was to avoid conflicts with user-defined subroutines. Since ‘continue’ is a syntax error anyway without, should it be necessary to load to get a bare ‘continue’ as a keyword (with its when-exiting meaning)?

Making it the same as any other keyword, and not dependent upon, actually simplifies the code in toke.c
Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About