in reply to Subclassing strategies
I don't think subclassing HTML::TokeParser for token is a good fit. It appears to violate the 'is-a' rule for inheritance. Perhaps the parser object should be regarded as a queue of tokens, or maybe a token factory.
A look at the HTML::Parser<--HTML::PullParser<--HTML::TokeParser namespace suggests that HTML::Token might be the level for the Token object.
After Compline,
Zaxo
|
|---|