Come now Ovid, you're over thinking it.
All tokens must not have attr methods, cause all tokens do not have attributes.
Divide and conquer.
I say you just go with Re: Re: XML::TokeParser::Simple - pretty much like HTML::TokeParser::Simple like you said you would.
Your start tags can have those attr methods, but your text/comment/end tokens surely must not.
in reply to OO style question: how much information to hide?
Perl should definetly die with
Can't locate object method "del_attr" via package ... if you try that on a text token.
MJD says you
can't just make shit up and expect the computer to know what you mean, retardo!
I run a Win32 PPM
repository for perl 5.6x+5.8x. I take requests.
** The Third rule of perl club is a statement of fact: pod is sexy.