When I first read LanX's reply, I was confused because the statement all on its own is an error. But LanX /msg-ed me that the rule allows access to same-named lexicals in surrounding scopes:
Now I understand.c:\@Work\Perl\monks>perl -wMstrict -le "my $x = 42; if ($x) { my $x = $x++; print $x; } print $x; " 42 43
Give a man a fish: <%-{-{-{-<
In reply to Re^3: Frustrating Error: "Global symbol requires explicit package name" - Can't see why?
by AnomalousMonk
in thread Frustrating Error: "Global symbol requires explicit package name" - Can't see why?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |