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 $!;
In reply to Re: HTM::TreeBuilder, HTML::Element's look_down() method
by afresh1
in thread HTM::TreeBuilder, HTML::Element's look_down() method
by 7stud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |