P is for Practical | |
PerlMonks |
Re: HTM::TreeBuilder, HTML::Element's look_down() methodby afresh1 (Hermit) |
on Oct 06, 2010 at 21:11 UTC ( [id://863867]=note: print w/replies, xml ) | Need Help?? |
Pretty simple, $html is not a file, so $tree->parse_file won't work. Use $tree->parse instead. With some additional error checking it would have even give you a clue: $tree->parse_file($html) or die $!;
l8rZ, -- andrew
In Section
Seekers of Perl Wisdom
|
|