Thread Use of uninitialized value ...: Hash mit Array als value (undef) (14 answers)
Opened by Duff at 2007-07-10 16:56

Duff
 2007-07-12 10:15
#78355 #78355
User since
2006-10-06
283 Artikel
BenutzerIn

user image
Ok, sorry. Habe mich wohl ein wenig unverständlich ausgedrückt.

Aber wie muss ich dass ganze jetzt bei mir einbauen?

So funktioniert es nicht:
Code: (dl )
1
2
3
4
5
6
7
for my $k (sort { $hash{$a}->[0] <=> $hash{$b}->[0] or $a cmp $b } keys %hash) {
my @arr = grep { defined $_ } @{ $hash{$k} };

if (@arr) {
printf "%-25s : %-80s\n", $k, "@arr";
}
}
D'OH
Daniel

View full thread Use of uninitialized value ...: Hash mit Array als value (undef)