use HTML::TableExtract;
my @content = (<>); # give html file on command line
my $content = join( //, @content );
for $count ( 1 .. 8 ) {
$te = new HTML::TableExtract( depth => 1, count => $count );
$te->parse($content);
# 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 );
}
}