Let HTML::TreeBuilder construct the tree, then re-bless instances of HTML::Element to be instances of your subclass (of HTML::Element).
Or, if you need to do this during construction, consider subclassing HTML::TreeBuilder and selectively overriding methods.
In reply to Re: Extending object you don't create
by dws
in thread Extending object you don't create
by dcorbin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |