Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

WWW::Mechanize Basics

by PerlSufi (Friar)
on Jun 06, 2013 at 19:49 UTC ( #1037506=perltutorial: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    use WWW::Mechanize; my $mech = WWW::Mechanize->new(); 
    my $url = ""; 
    $mech->follow_link( url => ''); 
    if ($mech->success()){ print "Successful Connection\n"; } 
    else { print "Not a successful connection\n"; }
  2. or download this
    print $mech->content;
  3. or download this
  4. or download this
    #This block of code is intended to fill in the required forms $mech->g
    my $usr = "username"; 
    $mech->field( "enddate", $end_date); 
  5. or download this
    use WWW::Mechanize; 
    use IO::Socket::SSL qw(); 
    my $mech = WWW::Mechanize->new(ssl_opts => { SSL_verify_mode => IO::So
    +cket::SSL::SSL_VERIFY_NONE, verify_hostname => 0,});

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perltutorial [id://1037506]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2017-07-20 20:02 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (314 votes). Check out past polls.