Thread Undefinierten Wert "vergleichen"
(9 answers)
Opened by Brenner at 2009-01-21 16:35 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 my $var=undef; if(defined($var) && $var==1) { # tu was ... } elsif(!defined($var)) { # variable nicht definiiert } else { # variable != 1 } |