Thread use strict funktioniert nicht bei folgendem Programm (16 answers)
Opened by Byonik at 2011-01-05 18:03

Gast wer
 2011-01-06 09:09
#144116 #144116
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
#!/usr/bin/perl
use strict;
use warnings;

testemaldiesub();

sub testemaldiesub() {
    print "Hallo Welt\n";
}


Das gibt eine Warnung, da die Anzahl der Parameter nicht bestimmt werden können.

Folgendes funktioniert wieder:

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/perl
use strict;
use warnings;

sub testemaldiesub();

testemaldiesub();

sub testemaldiesub() {
    print "Hallo Welt\n";
}

Last edited: 2011-01-06 09:51:04 +0100 (CET)

View full thread use strict funktioniert nicht bei folgendem Programm