From their documentation:
- HTML::TreeBuilder : Parser that builds a HTML syntax tree.
- HTML::TreeBuilder::XPath : This module adds typical XPath methods to HTML::TreeBuilder, to make it easy to query a document.
- HTML::TreeBuilder::LibXML : HTML::TreeBuilder::LibXML is drop-in-replacement for HTML::TreeBuilder::XPath. This module doesn't implement all of HTML::TreeBuilder and HTML::Element APIs, but enough methods are defined so modules like Web::Scraper work.
For large documents
HTML::TreeBuilder could become rather slow and then
HTML::TreeBuilder::LibXML is a replacement to consider.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
My blog:
Imperial Deltronics