Help for this page

Select Code to Download


  1. or download this
    my $mech = WWW::Mechanize->new();
    $mech->get($url);
    ...
    my $outpage = $mech->content();
    open(OUTFILE, ">$outfile");
    print OUTFILE "$outpage";
    
  2. or download this
    /You have \d+ unread messages/
    
  3. 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;
    }