There's more than one way to do things | |
PerlMonks |
Re: Global variable vs passing variable from sub to subby pelagic (Priest) |
on Sep 13, 2004 at 19:37 UTC ( [id://390647]=note: print w/replies, xml ) | Need Help?? |
A object oriented solution is IMHO the best solution for global variables. If you want to dive into this topic I suggest to read brian d foys review of singleton design patterns.
pelagic
In Section
Seekers of Perl Wisdom
|
|