As a matter of fact, this even does not work:
use strict; use warnings; my $item = $item;
You will get:
Global symbol "$item" requires explicit package name at a.pl line 4. Execution of a.pl aborted due to compilation errors.
Update:
see bpphillips's reply to my post, duff could actually meant what dpphillips detailed below.
In reply to Re^2: Scoping question
by pg
in thread Scoping question
by Dr. Mu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |