Hi Monks,
I have a question,
I am trying to use WWW::Mechanize to login to yahoo mail and get the contents into outfile.
here is the script:
my $mech = WWW::Mechanize->new();
$mech->get($url);
$mech->form_name('loginform');
$mech->field(login => $username);
$mech->field(passwd => $password);
$mech->click();
my $outpage = $mech->content();
open(OUTFILE, ">$outfile");
print OUTFILE "$outpage";
at this point it gives me the contents of the very first page in yahoo mail.
now Here is my question:
I want to search for the string for how many emails do I have from the outfile and store it in another file and print the final file which has information on how many emails I have.
like for example when I open my final file it should have
" You have 5 unread messages:"
any sugegstions???
appreciate your help.
Thanks