in reply to Re^2: easy HTML::TokeParser help request
in thread easy HTML::TokeParser help request

Of about the last 10 "I need to parse this HTML/XML structure" questions asked here nine of the answers were trivial using ::TreeParser (there are XML and HTML versions) and the other was trivial using XML::Twig.

Personally I use TreeParser more often in an HTML context and XML::Twig for XHTML and XML. XML::Twig is very powerful for editing, TreeBuilder is very good at looking stuff up.

At the end of the day the more modules you know a little bit about the more quickly and reliably you get stuff done. Don't be afraid to read documentation! Sometimes a quick question in the CB can save a huge amount of time, if you have a general idea where you are headed in the first place.

Limiting yourself to a single module is ... limiting! There is no one tool that does every job, not even computers.


DWIM is Perl's answer to Gödel
  • Comment on Re^3: easy HTML::TokeParser help request