Help for this page

Select Code to Download


  1. or download this
    use WWW::Mechanize;
        my $m = WWW::Mechanize->new( autocheck => 1 );
    ...
                    },
                   button    => 'Sign In',
         );
    
  2. or download this
    use WWW::Mechanize;
    use HTTP::Cookies;
    ...
    print "form submit failed!", $mech->response->status_line, "\n" unless
    + $mech->success;
    $mech->set_visible( $username );
    $mech->click_button(value => "Sign In");
    
  3. or download this
    use WWW::Mechanize;
    use URI::URL;
    ...
            $password="shekar";
            $m->set_visible($username,$password);
            $m->submit();