jaydon has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I am getting the following error when running a simple script :
"Can't locate auto/HTML/TableExtract/rows.al in @INC"
Here is the code snippet:
my $te; $te = HTML::TableExtract->new( headers => [qr/Month\s*/, qr/First\s*/, qr/High\s*/, qr/Low\s*/, qr/Sett\s*/, qr/Chg\s*/, qr/Vol\s*/, qr/GOWAVE\*\s*/] ); $te->parse_file($sourcefile); my ($row, $record); open (DATFILE, ">> meg.dat") or die "Unable to open meg.dat: $!"; print DATFILE "Table:\n"; foreach $row ($te->rows) { #code failed at this line $record = join(',', @$row); print DATFILE $record . "\n"; } close DATFILE;
I just installed this module and have verified that the TableExtract.pm is in a location specified by @INC, and that the rows() subroutine is defined in there. However, there is no rows.al at that location.
Can anyone tell me what this means? Did my installation not work correctly even though no failure was indicated?
PS: I'm a newbie so please be kind
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: resolving HTML::TableExtract error
by mojotoad (Monsignor) on Jul 14, 2005 at 00:34 UTC | |
by jaydon (Novice) on Jul 14, 2005 at 16:20 UTC | |
|
Re: resolving HTML::TableExtract error
by socketdave (Curate) on Jul 13, 2005 at 20:42 UTC | |
by jaydon (Novice) on Jul 13, 2005 at 20:46 UTC | |
|
Re: resolving HTML::TableExtract error
by haoess (Curate) on Jul 13, 2005 at 20:48 UTC | |
by jaydon (Novice) on Jul 13, 2005 at 21:18 UTC | |
by crashtest (Curate) on Jul 14, 2005 at 00:34 UTC | |
by jaydon (Novice) on Jul 14, 2005 at 15:43 UTC |