in reply to web scraping script help

What is the error code produced? If it works on the first few pages I might suspect an HTML issue on the page in question is causing a problem.

Replies are listed 'Best First'.
Re^2: web scraping script help
by Perl_Necklace (Initiate) on Sep 18, 2007 at 20:44 UTC
    This is the error:
    Can't call method "rows" on an undefined value at C:/Perl/site/lib/HTML/TableExtract.pm line 224 (#1) (F) You used the syntax of a method call, but the slot filled by t +he object reference or package name contains an undefined value. Som +ething like this will reproduce the error: $BADREF = undef; process $BADREF 1,2,3; $BADREF->process(1,2,3); Uncaught exception from user code: Can't call method "rows" on an undefined value at C:/Perl/site/lib +/HTML/TableExtract.pm line 224. at C:/Perl/site/lib/HTML/TableExtract.pm line 224 HTML::TableExtract::rows('HTML::TableExtract=HASH(0x23c6ff0)') cal +led at C:\parse_and_save.pl line 21 main::parse_and_save() called at C:\Documents and Settings\My Docu +ments\perl\scripts\parse_and_save.pl line 28 main::parse_and_save() called at C:\Documents and Settings\My Docu +ments\perl\scripts\parse_and_save.pl line 28 main::parse_and_save() called at C:\Documents and SettingsMy Docum +ents\perl\scripts\parse_and_save.pl line 28 main::parse_and_save() called at C:\Documents and SettingsMy Docum +ents\perl\scripts\parse_and_save.pl line 28 main::parse_and_save() called at C:\Documents and SettingsMy Docum +ents\perl\scripts\parse_and_save.pl line 28 main::parse_and_save() called at C:\Documents and Settings\My Docu +ments\perl\scripts\parse_and_save.pl line 28 main::parse_and_save() called at C:\Documents and SettingsMy Docum +ents\perl\scripts\parse_and_save.pl line 32
      You may want to add a check to make sure it is finding the table before you parse the rows.