in reply to Re: difference between 'if (condition) { expression;}' and 'expression if (condition)'
in thread difference between 'if (condition) { expression;}' and 'expression if (condition)'
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