Ich habe nochmal kurz gebastelt,allerdings kriege ich dann folgende fehlermeldung Microsoft
C:\Users\r00t\Desktop>perl v.pl
No clickable input with name button_login_login at C:/Perl/lib/WWW/Mechanize.pm
line 1643
der geƤnderte code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/perl
use strict;
use warnings;
use WWW::Mechanize;
use HTML::FORM;
my $email = 'Sample';
my $password = 'Sample';
my @fields = ("email" , "password");
my $browser = WWW::Mechanize->new(
stack_depth => 0,
autocheck => 1,
);
$browser->agent_alias( 'Windows IE 6');
$browser->get("http://schülercc.de/");
$browser->submit_form(
fields => {email => $email,passwort => $password},
button => 'button_login_login'
);
print $browser->content;