in reply to Inspecting each element in a tree, specifically HTML::Tree
I've only used Perl for 2 weeks, so apologies for my likely ignorance.
You're so close its not even funny, just use look_down to examine every element. Read all about it in HTML::Tree/HTML::Tree::Scanning
Or go the declarative route (xpath), use HTML::TreeBuilder::XPath/htmltreexpather.pl, see examples and walkthroughs: Parsing HTML / Re^4: Parsing HTML, A regex question , NASA's Astronomy Picture of the Day / Re: NASA's Astronomy Picture of the Day ....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Inspecting each element in a tree, specifically HTML::Tree
by hulot (Initiate) on Jul 25, 2012 at 19:07 UTC |