use strict; use warnings; use HTML::Table; use HTML::TableExtract; my $tbltext = <<'END_TBL';
134
onetwothree
END_TBL my $tableEx = HTML::TableExtract->new (); $tableEx->parse ($tbltext); my @rows = $tableEx-> rows (); for my $row (@rows) { next if @$row < 3; # Not interested in short rows $row->[2] = 'newText'; } my $tableOut = HTML::Table->new (); $tableOut->addRow (@$_) for @rows; $tableOut->print ();