# Shorthand...top level rows() method assumes the first table found in # the document if no arguments are supplied. foreach $row ($te->rows) { print join(',', @$row), "\n"; } #### use strict; use warnings; use HTML::TableExtract; use Data::Dumper; my $html_string = qq{ test
NamePlaceCountryTelephone
JustinCalifornia12345
CatherineTexasUSA2419422
}; my $te = HTML::TableExtract->new( headers => ['Name', 'Place', 'Country', 'Telephone'], ); $te->parse($html_string); print Dumper($te->rows);