Help for this page

Select Code to Download


  1. or download this
    use WWW::Mechanize ;
    
    ...
    
    # If the form sends you somewhere, you can catch it :
    my $url = $m->response->request->uri->as_string ;
    
  2. or download this
    $m->get("$url") ;
    die $m->res->status_line unless $m->success ;
    
    my $tree = HTML::TreeBuilder->new_from_content( $m->content ) ;