note
mojotoad
The cannonical form is the second example you give, e.g.
<code>
my $te = HTML::TableExtract->new( headers => [qw($service $arrival $transit)] );
$te->parse($html_string);
foreach my $row ($te->rows) {
foreach my $cell (@$row) {
print $cell;
}
}
</code>
The old style of dealing directly with the arrays of rows is no longer supported (though each row is still indeed an array).
<p>
I note that in your example code, you're not setting $html_string beforehand. That could be a paste-o, but make sure you're using strict to catch that kind of thing.
<p>
Having said all that -- if it's still not working, which version of [cpan://HTML::TableExtract] are you using?
<p>
Thanks,<br>
Matt (author of said module)
522074
522074