- or download this
my $mech = WWW::Mechanize->new();
$mech->get($url);
...
my $outpage = $mech->content();
open(OUTFILE, ">$outfile");
print OUTFILE "$outpage";
- or download this
/You have \d+ unread messages/
- or download this
if ( $outpage =~ /(You have \d+ unread messages)/ ) {
open( FINAL, ">", "make_up_a_file_name" ) or die $!;
print FINAL $1,"\n";
close FINAL;
}