You should select the form first to work on after the get() method. Saying $mechObject->form_number(1) means that work on the form number 1, which is the only form in the HTML. The field() method works on a single field, so you have to call it twice for to fill in two fields. The click() method returns HTTP::Response object so you may interested the clicking result or the content returned by the server.
in reply to use WWW::Mechanize or LWP to interface with WEB
my $resp = $mechObject->click;
die "Submit failed\n" if $resp->is_error;
my $content = $resp->content;
# do something with $content if necessary
Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!