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.
In reply to Re: Re: Re: Variable scoping outside subs
by Anonymous Monk
in thread Variable scoping outside subs
by xiper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |