in reply to Re: Re: I need a simple explantion of the difference between my() and local()
in thread I need a simple explantion of the difference between my() and local()
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: I need a simple explantion of the difference between my() and local()
by buckaduck (Chaplain) on May 02, 2001 at 22:28 UTC | |
|
Re: Re: Re: Re: I need a simple explantion of the difference between my() and local()
by $code or die (Deacon) on May 03, 2001 at 07:16 UTC |