go ahead... be a heretic | |
PerlMonks |
Re^2: Closure confusion in Tkx (declarations in loops - inner vs outer)by LanX (Saint) |
on Jul 13, 2019 at 13:53 UTC ( [id://11102793]=note: print w/replies, xml ) | Need Help?? |
> ²) a c-style for is semantically just a while-loop with a prior declaration. to expand further on this, please see perlsyn#For-Loops which means is the same as this:
now compare the different effects from an inner declaration ($i) and an outer declaration ($x)
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|