#!/usr/bin/perl
use strict;
my $row;
use HTML::TableExtract;
$/ = "";
print "Content-type: text/html\n\n";
open(RIGHT, "/usr/fweb/mydomain/html/test.html");
my $string = ;
close(RIGHT);
my $headers = ['Account','Detail','Amount'];
my $te = HTML::TableExtract->new(headers => $headers) ;
$te->parse($string);
foreach my $ts ($te->table_states) {
print "Column1 Column2 Column3\
";
foreach $row ($ts->rows) {
print join(' ', @$row), "\
";
}
}