Problems? Is your data what you think it is? | |
PerlMonks |
Re: Get the $main value when use localby blazar (Canon) |
on Aug 04, 2005 at 09:11 UTC ( [id://480730]=note: print w/replies, xml ) | Need Help?? |
AFAIK, you can't. That's the whole point about local. Any good reason why you need to use local instead of my? You may try giving a peek into Coping with Scoping and Seven Useful Uses of local for insightful info.
As a side note, read perldoc perlvar to find out why as a general rule $a should not be used as a general purpose variable. Update: all in all your test code may have been written like thus:
In Section
Seekers of Perl Wisdom
|
|