in reply to Changing package variable via object-instance
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