Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Are global variables "bad"?by pileofrogs (Priest) |
on Apr 22, 2009 at 14:52 UTC ( [id://759304]=note: print w/replies, xml ) | Need Help?? |
I was recently trying to explain OOP to my dad, who's an old fortran programmer. One of the things I said was, "it's a way to have global variables without the danger." I wouldn't recommend making your object by hand the old fashioned way. I'd try one of the nifty packages that do a lot of the grunt work. The only one that pops into my head right now is Moose, but I know there are others. Re: singleton, Is that a singleton? If so, I never knew the name. How would closures fit in this conversation? It seem like they'd be a middle-point between a singleton and an object.
Thanks
In Section
Seekers of Perl Wisdom
|
|