Think about Loose Coupling | |
PerlMonks |
Re: OO doesn't seem to play nice with multiple instancesby gellyfish (Monsignor) |
on Jun 01, 2005 at 21:09 UTC ( [id://462662]=note: print w/replies, xml ) | Need Help?? |
I would suggest storing the name in the hash you are using as the object - like with a key such as '_name'. You can then change your methods like: The way that you are using the $_name is like having a static variable in other languages. /J\
In Section
Seekers of Perl Wisdom
|
|