Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: using HTML::TreeBuilder to collect data for populating variablesby wfsp (Abbot) |
on Aug 04, 2010 at 06:55 UTC ( [id://852809]=note: print w/replies, xml ) | Need Help?? |
hi aquarium, I suggested starting a new thread. The previous thread, collect data from web pages and insert into mysql had made some progress and I thought the next step warranted a new thread (we had got down to Re^11). Tackle a broad question in chuncks rather than in one go. I still think it was reasonable advice but perhaps a bit more explanation and some working code would have helped. :-) As SteinerKD has indicated $t is an HTML::TreeBuilder object and should have been passed to the sub. H::TB returns HTML::Element objects and it is there that $t->look_down() and $t->as_text are documented. It's not clever code but may well be hard to figure out and not great to work with. With hindsight it might be more appropriate to use something like HTML::TableExtract. In the previous thread we already had a H::TB object and that was pressed into service.
In Section
Seekers of Perl Wisdom
|
|