:) I was going to list this as a reason, but I remembered warnings
$ perl -Mwarnings -e " $foo = 1; " Name "main::foo" used only once: possible typo at -e line 1. $ perl -Mwarnings -e " my $foo = 1; "
If warnings can detect this I see no reason a New pragma 'scope' to change Perl's default scoping couldn't do the same
Naturally that won't help if you're making the typo twice, but neither does strict/my :)
In reply to Re^3: my $scope as the default for variables
by Anonymous Monk
in thread Please help me print this hash.
by Je55eah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |