On 2011-01-12 10:44, Shlomi Fish wrote:
Add:
{{{
use strict;
use warnings;
}}}
to the start of your script.
That adds 3 ENTERs and LEAVEs for no good reason. The code is not in a
tight loop, so that doesn't matter much, but there is more:
perl -MData::Dumper -wle '
$x = 1;
{{{
use strict;
use warnings;
$y = 1;
}}}
$z = 1;
'
Global symbol "$y" requires explicit package name at -e line 6.
Execution of -e aborted due to compilation errors.
So both the $x and $z are missed, if you would adopt the silly {{{ ...
}}} notation.
--
Ruud
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/