NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Symbol::Glob 0.01 (Score:1)
As a nice bonus, I got a chance to try the inside-out object model and Class::Std. Found it much easier to concentrate on getting the details of the glob manipulation right because I knew that the object access code was safe.
I did find one thing I needed to do that wasn't simple with Class::Std. As you noted, removing a symbol table entry safely consists of deleting the glob altogether, then inserting the fields you want to keep back into the glob again. A Class::Std class doesn't let you iterate over all of the fields in the object easily, because they aren't *in* the object. I ended up creating a mapping hash that mapped method names to the storage hashes to be able to find them all easily.
Reply to This