I tried the below code to login in perlmonks, but it says oops wrong login. where am i going wrong. I am not getting any error message.
use strict; use WWW::Mechanize; my $url = "http://www.perlmonks.com"; my $mech = WWW::Mechanize->new(autocheck => 1);#create the object $mech->get( $url ); print $mech->content,"\n"; $mech->submit_form( form_number =>2, fields => {user => 'myname', passwd => 'password'} ); my $content = $mech->content(); $mech->success ? print "yes" : print "no";
In reply to Question in WWW::Mechanize by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |