S
sdfgsd
Hello,
This script will not generate any output within the foreach loop. No errors
or anything. $te tests ok with a hash. I can't figure it out.
My sample .html file consists of 1 table (depth = 0, count = 0). Using perl
5.8/Suse 8.0
Thanks in Advance
===========================
#!/usr/bin/perl
use warnings;
use strict;
use HTML::TableExtract;
my $target = "op2.html";
my $te;
my $ts;
my $row;
if (-e $target) { print "File Exists\n"; }
$te = new HTML::TableExtract( depth => 0, count => 0 );
$te->parse($target);
print "We are here\n";
foreach $ts ($te->table_states) {
print "Table found at ", join(',', $ts->coords), ":\n";
foreach $row ($ts->rows) {
print " ", join(',', @$row), "\n";
}
}
============================
This script will not generate any output within the foreach loop. No errors
or anything. $te tests ok with a hash. I can't figure it out.
My sample .html file consists of 1 table (depth = 0, count = 0). Using perl
5.8/Suse 8.0
Thanks in Advance
===========================
#!/usr/bin/perl
use warnings;
use strict;
use HTML::TableExtract;
my $target = "op2.html";
my $te;
my $ts;
my $row;
if (-e $target) { print "File Exists\n"; }
$te = new HTML::TableExtract( depth => 0, count => 0 );
$te->parse($target);
print "We are here\n";
foreach $ts ($te->table_states) {
print "Table found at ", join(',', $ts->coords), ":\n";
foreach $row ($ts->rows) {
print " ", join(',', @$row), "\n";
}
}
============================