use strict;
use warnings;
use HTML::TableExtract;
my $te = HTML::TableExtract->new ();
$te->parse (<
| Cell 1 | Cell 2 | Cell 3 |
| Cell 4 | Cell 5 | Cell 6 |
HTML
my $table = $te->first_table_found;
my @totalrows = $table->rows ();
print "$_->[0] - $_->[1] - $_->[2]\n" for @totalrows;