On Mon, 10 Apr 2006 19:03:25 -0400, Charles K. Clarkson
<[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED] wrote:
: I'm trying to scrape the data behind the form at
: http://www.theblackchurch.com/modules.php?name=Locator As a true
: beginner with Perl (I know some php), I'm working from training
: scripts that scrape from another site. There are four scripts of
: increasing complexity, but on the simplest I get error message "Can't
: call method "value" on an undefined value" From reading, this looks
: like a cookie problem.
Actually, it looks like a missing form problem.
use strict;
use warnings;
use WWW::Mechanize;
my $browser = WWW::Mechanize->new();
$browser->get( $starting_url );
die "No forms at $starting_url.\n" unless @{ $browser->forms() };
__END__
HTH,
Charles K. Clarkson
I don't follow - when I add the suggested line I do get No forms at (the
url). But there is a form on the page cited in the script.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>