atnonis has asked for the wisdom of the Perl Monks concerning the following question:
when im running it, i get the following error(s):#!/usr/bin/perl -w use strict; use WWW::Mechanize; use LWP::Simple; my $browser = WWW::Mechanize->new(); $browser->get("http://localhost"); $browser->form_number('1'); $browser->field("username_entered", 'root'); $browser->field("password_entered", 'antonis'); $browser->submit(); my $url_ = $browser->{uri}; my $url = getprint($url_);
i've read an document at Advent Calendar but...<input> outside <form> at /usr/lib/perl5/site_perl/5.8.0/WWW/Mechanize +.pm line 811 <input> outside <form> at /usr/lib/perl5/site_perl/5.8.0/WWW/Mechanize +.pm line 811 .<br> .<br> .<br> <input> outside <form> at /usr/lib/perl5/site_perl/5.8.0/WWW/Mechanize +.pm line 811
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW:Mechanize (input not in form) problem
by Abigail-II (Bishop) on May 04, 2003 at 23:02 UTC | |
by atnonis (Monk) on May 07, 2003 at 15:15 UTC | |
by merlyn (Sage) on May 07, 2003 at 15:17 UTC | |
by hardburn (Abbot) on May 07, 2003 at 15:20 UTC | |
by petdance (Parson) on Jun 29, 2003 at 04:35 UTC | |
|
•Re: WWW:Mechanize (input not in form) problem
by merlyn (Sage) on May 07, 2003 at 15:32 UTC | |
by atnonis (Monk) on May 07, 2003 at 15:43 UTC | |
by merlyn (Sage) on May 07, 2003 at 15:46 UTC |