in reply to Can't find form method in WWW::Mechanize
AFAIK, the form() method has been deprecated for a while, and has in the meantime been replaced with form_name() and form_number(). So, you probably want to modify that line 184 to read:
$agent->form_name("addFriend");
The "uninitialized value in pattern match" seems to happen here
$_ = $tag->get_attr("href"); if ( /friend[iI][dD]/ ){ ...
so, apparently, the href attribute is empty, or not found... I'm afraid I can't help you with that any further, though...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can't find form method in WWW::Mechanize
by Anonymous Monk on Sep 29, 2007 at 22:06 UTC |