Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I don't know what I am doing wrong but this code is bringing back the errror of Can't call method "value" on an undefined value at /home/sash/public_html/lib//WWW/Mechanize.pm line 1154. Can someone help me get this to work to automate this form?
my $url = "http://www.letssingit.com"; use lib "/home/sash/public_html/lib/"; use WWW::Mechanize; my $mech = WWW::Mechanize->new(agent=>"wonderbot" ); $mech->get($url); print header, start_html("lyrics grabber"); $mech->submit_form( form_name => "search", fields => { query => 'search', }, button => 'Go' ); $mech->uri();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting a form filler to work for letssingit.com
by sh1tn (Priest) on Apr 12, 2005 at 23:06 UTC | |
by ikegami (Patriarch) on Apr 12, 2005 at 23:29 UTC | |
by Anonymous Monk on Apr 13, 2005 at 02:28 UTC | |
by moot (Chaplain) on Apr 13, 2005 at 03:15 UTC | |
by Anonymous Monk on Apr 13, 2005 at 03:57 UTC |