laziness, impatience, and hubris | |
PerlMonks |
Re^3: Duh. 'my' scope in if else blocks.by ikegami (Patriarch) |
on Dec 11, 2007 at 19:57 UTC ( [id://656468]=note: print w/replies, xml ) | Need Help?? |
doom's explanation is wrong. It has nothing to do with order. Even if you fixed the order, it still wouldn't work.
Variables cannot be used (by name) in the statement in which they are declared. This allows statements such as my $t = $t; to work.
In Section
Seekers of Perl Wisdom
|
|