in reply to Extending object you don't create
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Extending object you don't create
by merlyn (Sage) on Feb 28, 2001 at 06:42 UTC | |
by dws (Chancellor) on Feb 28, 2001 at 06:54 UTC | |
by dcorbin (Sexton) on Feb 28, 2001 at 06:58 UTC |