![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re^2: difference between 'if (condition) { expression;}' and 'expression if (condition)'by ranjan_jajodia (Monk) |
on Mar 22, 2006 at 14:38 UTC ( #538521=note: print w/replies, xml ) | Need Help?? |
Thanks ww. Since the second example works fine which means that even though the expression is not executed because of the condition being false, still the variable is declared. Is it like the perl interpreter first parses the code for the declared variables and their scope and then starts executing the code? Regards, Ranjan
In Section
Seekers of Perl Wisdom
|
|