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

[perl #50742] goto error?

Thread Next
From:
Rafael Garcia-Suarez via RT
Date:
February 12, 2008 05:39
Subject:
[perl #50742] goto error?
Message ID:
rt-3.6.HEAD-14152-1202815215-198.50742-15-0@perl.org
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About