|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: Re: •Re: Re: •Re: sub and anonymous subby thelenm (Vicar) |
| on Jun 21, 2002 at 22:08 UTC ( #176415=note: print w/ replies, xml ) | Need Help?? |
|
Since local works with variables in the symbol table and lexical (my) variables have no symbol table entries, you can't use local on a my variable. For example, this fails: with the error:
-- Mike --
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||