That does not change the scoping rules , { } introduces a new scope
$ perl -le " eval { my $foo = 1; } ; print $foo; " $ perl -le " use strict; eval { my $foo = 1; } ; print $foo; " Global symbol "$foo" requires explicit package name at -e line 1. Execution of -e aborted due to compilation errors.
In reply to Re^3: I can't see why this shorthand doesn't behave like the verbose form
by Anonymous Monk
in thread I can't see why this shorthand doesn't behave like the verbose form
by isync
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |