Since this is HTML, you probably need an XPath module to work with HTML, HTML :: TreeBuilder :: XPath .
, HTML:: TreeBuilder. , - $content, :
my $tree = HTML::TreeBuilder->new;
$tree->parse_file($file_name);
XPath . td , tr table body html:
my $tdNodes = $tree->findnodes('/html/body/table/tr/td');
, , , :
foreach my $node ($tdNodes->get_nodelist) {
my $data = $node->findvalue('.');
print "$data\n";
}
. HTML:: TreeBuilder NodeSet , NodeSet. w3schools XPath .
HTML, , . , .. XPath, , . , HTML XPath , .