in reply to Re^3: HTML::Parser fun
in thread HTML::Parser fun

Thank you very much, Your Mother, I must have glossed over that bit in the docs with bleary eyes glassified by bashing my head against the trees of the forest... or something like that.

I'm going to play around with this over the weekend to get comfy with the idea and if all goes well, it looks like I'll be retooling with XML::LibXML.

Even though I didn't get my origional question answered about HTML::Parser, it looks like I've learnt something new and better!

Replies are listed 'Best First'.
Re^5: HTML::Parser fun
by Your Mother (Archbishop) on Jun 06, 2008 at 18:44 UTC

    You're most welcome. I don't know if XML::LibXML's a cure-all but it's all I've been using for a couple years for parsing (X)HTML when I don't need a stream (which is most of the time, otherwise I like HTML::TokeParser). It'll even validate documents against DTDs. And as a side-effect of picking it up, you'll find you'll learn other useful stuff like xpath and JS/DOM hacking. Mine improved considerably though learning it.