Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Whether to use local()by PrakashK (Pilgrim) |
on Mar 15, 2002 at 19:38 UTC ( [id://152067]=note: print w/replies, xml ) | Need Help?? |
My question is whether you should be concerned with scope if $new_mail needs to be shared between sub update_mail_list and sub read_mail_list etc.One trick I sometimes use to share a variable among multiple subroutines, without making it a package variable is to enclose all of them in a block. What do monks think about this style?
Thanks,
In Section
Seekers of Perl Wisdom
|
|