Wenn ich mein script laufen lassen möchte, dann bekomme ich eine Fehlermeldung, aber wie schon im Topic geschrieben, finde ich den Fehler einfach nicht. :(
Wahrscheinlich stehe ich voll auf dem Schlauch - ich hoffe mal, ihr könnt mir schnell weiterhelfen :)
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
sub initSurvRerun() {
$textfield_listing->selectionSet(0, 'end');
my @indexlist = $textfield_listing->curselection();
$textfield_listing->selectionClear(0, 'end');
foreach my $i ( @indexlist ) {
my $packnum = $packetnumber[$i];
my $host = $hostname[$i];
if ($pack_status{$i} eq "running") {
if (checkStatus($packnum, $host) == 1) {
checkSchedules($packnum, $host);
}
}
}
}
sub checkStatus() {
my $blub = $_[0];
my $blub2 = $_[1];
}
sub checkSchedules() {
my $blub = $_[0];
my $blub2 = $_[1];
}
Fehlermeldung:
QuoteToo many arguments for main::checkStatus at script_v_0-7.pl line 10, near "$host) "
Too many arguments for main::checkSchedules at script_v_0-7.pl line 11, near "$host)"
Execution of script_v_0-7.pl aborted due to compilation errors.