![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
'use strict' without a semicolon can be interestingby toma (Vicar) |
on Jul 08, 2010 at 23:49 UTC ( [id://848783]=perlquestion: print w/replies, xml ) | Need Help?? |
toma has asked for the wisdom of the Perl Monks concerning the following question:
Someone ran across a problem in some production code where there was a missing semicolon after use strict. The problem reduces to this: perl -e 'sub {use strict my @s = @_;}' It seems to me like it would be nice if this gave some sort of an error. Am I missing something? The problem was found with perl 5.8.4 and still behaves the same way in perl 5.8.12 (edit: oops, I meant 5.12.1) It should work perfectly the first time! - toma
Back to
Seekers of Perl Wisdom
|
|