With WWW::Mechanize, you need to first get the page before you can check for success or access its contents.
use WWW::Mechanize; my $mech = WWW::Mechanize->new(); $mech->get($search_page); if (!$mech->success()) { die "ISite didn't respond"; } my $stuff = $mech->content();
In reply to Re: www::mech success
by kyle
in thread www::mech success
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |