if you use my() inside an if .. else conditional, it is also only visible in that scope.I think that's just a special case of what Dominus said at Re: I need a simple explantion of the difference between my() and local():
The variable is only available inside the block in which you declared it.Or were you implying something extra special there?
-- Randal L. Schwartz, Perl hacker
In reply to Re: Re: Re: I need a simple explantion of the difference between my() and local()
by merlyn
in thread I need a simple explantion of the difference between my() and local()
by Jemts
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |