Leser: 24
|< 1 2 3 4 >| | 31 Einträge, 4 Seiten |
1 2 3 4 5 6 7 8 9 10 11
use WWW::Mechanize; my $mech = WWW::Mechanize->new( autocheck => 1 ); $mech->get( "website" ); $mech->field(username, beispiel); $mech->field( password, meinpasswort);
1
2
3
No such field 'password' at C:/Perl/lib/WWW/Mechanize.pm line 1247
No such field 'username' at C:/Perl/lib/WWW/Mechanize.pm line 1247
Quote$mech->field( $name, $value, $number )
$mech->field( $name, \@values, $number )
Given the name of a field, set its value to the value specified. This applies to the current form (as set by the "form_name()" or "form_number()" method or defaulting to the first form on the page).
The optional $number parameter is used to distinguish between two fields with the same name. The fields are numbered from 1.
|< 1 2 3 4 >| | 31 Einträge, 4 Seiten |