use strict;
use WWW::Mechanize;
my $username = "USER"; # Login
my $password = "PASSWORD"; # Password
my $url = "http://www.myurl.com"; # Your URL Name
my $mech = WWW::Mechanize->new();
$mech->get($url);
## Browse the HTML source of the ASP page to get these parameters
$mech->form("form_Name"); # The Login Form Name
$mech->field("txt_id", $username); # Username Texbox name
$mech->field("txt_pwd", $password); # Password Textbox name
$mech->click("cmd_ok"); # Button name
my $current_site = $mech->{uri}; #The $current_site would give you the address of next page...