#!/usr/bin/perl
use HTML::TreeBuilder;
my $tree = HTML::TreeBuilder->new;
$tree->parse_file("sample.html");
foreach my $anchor ($tree->find("p")) {
print $anchor->as_text, "\n";
}
my code is not printing any output. $tree->find("p")
is returning NULL.
tags. But still it does not return anything.
– dreamer Nov 05 '12 at 15:49