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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: 'use strict' without a semicolon can be interesting
by ikegami (Patriarch) on Jul 09, 2010 at 00:08 UTC | |
by toma (Vicar) on Jul 13, 2010 at 18:20 UTC | |
by ikegami (Patriarch) on Jul 13, 2010 at 18:30 UTC | |
Re: 'use strict' without a semicolon can be interesting
by Anonymous Monk on Jul 08, 2010 at 23:59 UTC | |
Re: 'use strict' without a semicolon can be interesting
by JavaFan (Canon) on Jul 12, 2010 at 10:27 UTC |
Back to
Seekers of Perl Wisdom