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