The table header follows: The perl code to parse this portion is as follows: my @headers = ('City', 'Address', 'Type', 'Contact Name', 'Contact', 'List Price') ; my $table_extractor = HTML::TableExtract->new( headers => \@headers ) ; my $content=$agent->{content} ; $table_extractor->parse(\$content) ; print "table_extractor=" . $table_extractor . "\n" ; my $table_data ; print "table_extractor->tables=" . $table_extractor->tables . "\n" ; foreach $table_data ( $table_extractor->tables ) { print "table_data=" . $table_data . "\n" ; my $row ; foreach $row ( $table_data->rows ) { print join( ',', @$row ), "\n" ; } }
City Address Type Contact Name Contact List Price