Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: if(my) scopeby ikegami (Patriarch) |
on Apr 16, 2009 at 15:53 UTC ( [id://758019]=note: print w/replies, xml ) | Need Help?? |
You changed
if (my $var) { ... } to if (...) { my $var; ... }
A scope is created for if's curlies, but only a compile-time scope is created for the condition expression. Btw, note the proper usage of Dump.
In Section
Seekers of Perl Wisdom
|
|