Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Changing package variable via object-instanceby bobn (Chaplain) |
on Aug 25, 2003 at 18:14 UTC ( [id://286442]=note: print w/replies, xml ) | Need Help?? |
If your instances are carrying around a reference to %config, excuting change_config overwrites %config. Objects may still be carrrying around a reference to the old %config. The code you posted doesn't seem to have this problem, though. --Bob Niederman, http://bob-n.com All code given here is UNTESTED unless otherwise stated.
In Section
Seekers of Perl Wisdom
|
|