Hi
i'm lil new to perl
wat i want to do is to login to my gmail account and click on the "Search mail" button using the perl script.
this is my script, but thr is a problem tht when i click on the "Search mail " button (second last line in the script.)it shows blank page on the browser.
if u comment tht line(second last line), it can log in to gmail and show my inbox....
the problem is jst clicking the button.....
plz help me out with this....
its urgent.....
#!/perl/bin/perl -w
print "Content-type: text/html\n\n";
use WWW::Mechanize;
my ($username, $password) = qw/snehapats123 us123456/;
my $mech = WWW::Mechanize->new( );
$mech->agent_alias("Windows Mozilla");
die "cud not open " ,$mech->response->status_line unless $mech->success;
$mech->form_number(1);
$mech->set_visible($username, $password);
$mech->submit;
$mech->click_button(number => 1);
print $mech->content;