Help for this page

Select Code to Download


  1. or download this
    use WWW::Mechanize;
    my $mech = WWW::Mechanize->new();
    ...
    $mech->get( $url );
    $mech->content( format => "text" );
    print $mech;
    
  2. or download this
    Can't locate HTML/TreeBuilder.pm in @INC [...] at /usr/lib/perl5/site_
    +perl/5.8.3/WWW/Mechanize.pm line 496.
    
  3. or download this
    my $res = $ua->request(HTTP::Request->new(GET => "http://www.yahoo.no"
    +));
    print $res;