Hi, I am new in Perl and I am trying to go through a login page and going to the actual site. For example, to be able to check emails in Yahoo, one must go through the Yahoo log in to enter credentials for username and password.
I used WWW::Mechanize to go through the login page, see code snippet below:
my $mech = WWW::Mechanize->new();
$mech->get($url);
$mech->field("UserName", $username);
$mech->field("Password", $password);
$mech->submit_form();
But with the code above, I am unable to go through the actual page and stuck in the login page. Any thoughts or suggestions?