in reply to Re: Re: Variable scoping outside subs
in thread Variable scoping outside subs
In this case, the entire script is parsed and the my declaration is noted at compile time. The initialization of $var happens at runtime, except in your case you've exited before that point.
|
|---|