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->set_visible($username, $password);


$mech->click_button(number => 1);

print $mech->content;

11 Years
Discussion Span
Last Post by KevinADC

c'mon man.
if u try 2 login with tht id and pwd u can login..
they do exist.

sorry I don't know, but I hope thats not your real name and password you posted.


i've created tht id for this hing only.........
thr r only 2 mails in tht inbox........
now wud u plz come 2 real world and understand wat the actual proble is !!!!!!!!!!


hehehe.... you're quite the dick-head aren't you. I graciously decline to "come 2 the real world and understand wat the actual proble is". Or more precisely, I know what the problem is but I'm just not going to tell you.

Best regards,
Kevin, Ruler of Kevlandia

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.