Just another Perl shrine | |
PerlMonks |
Re: OO doesn't seem to play nice with multiple instancesby Transient (Hermit) |
on Jun 01, 2005 at 21:07 UTC ( [id://462660]=note: print w/replies, xml ) | Need Help?? |
your $_name is essentially a package variable. If you want it tied to each instance, relate it to $this, e.g.: likewise on whoAmI. (...gives merlyn the honor post about ref($proto) || $proto)
In Section
Seekers of Perl Wisdom
|
|