develooper Front page | perl.perl5.porters | Postings from February 2008

[perl #50742] goto error?

Thread Next
Rafael Garcia-Suarez via RT
February 12, 2008 05:39
[perl #50742] goto error?
Message ID:
As documented in perlsyn, a label must be followed by a statement. A
declaration here will throw an expected syntax error, just like the
following example:

$ perl -wle 'print sub vronk {}'
syntax error at -e line 1, near "print sub vronk "
Execution of -e aborted due to compilation errors.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About