There's more than one way to do things | |
PerlMonks |
Re: Re: Re (tilly) 2: Whether to use local()by oubiwann (Sexton) |
on Mar 17, 2002 at 03:17 UTC ( [id://152263]=note: print w/replies, xml ) | Need Help?? |
Was local on hash/array elements added as a hack for signal handlers?
local was added to perl when there were only global variables as a hack for providing a means of creating "local" variables. There are other uses for it though, but that is better said here: Seven Useful Uses of local
In Section
Seekers of Perl Wisdom
|
|