Keep It Simple, Stupid | |
PerlMonks |
Re^2: Counting variable initializationby ikegami (Patriarch) |
on Mar 29, 2005 at 18:41 UTC ( [id://443227]=note: print w/replies, xml ) | Need Help?? |
Deparse is wrong in this case, on two counts: 1) print($t) is not strict safe in the deparsed version, but it is in the original, and 2) print($t) prints the package variable in the deparsed version, but not in the original. To answer the OP, my is considered a function for syntax purposes, so my ... foreach ...; means (my ...) foreach ...;, which makes no sense.
In Section
Seekers of Perl Wisdom
|
|