in reply to Problems with TableExtract
The old style of dealing directly with the arrays of rows is no longer supported (though each row is still indeed an array).my $te = HTML::TableExtract->new( headers => [qw($service $arrival $tr +ansit)] ); $te->parse($html_string); foreach my $row ($te->rows) { foreach my $cell (@$row) { print $cell; } }
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.
Having said all that -- if it's still not working, which version of HTML::TableExtract are you using?
Thanks,
Matt (author of said module)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problems with TableExtract
by suaveant (Parson) on Jan 10, 2006 at 05:53 UTC | |
by mojotoad (Monsignor) on Jan 10, 2006 at 06:32 UTC | |
by mojotoad (Monsignor) on Jan 10, 2006 at 06:36 UTC |