Thread Komplexe Datenstruktur in Perl aufbauen
(29 answers)
Opened by Matthias at 2010-02-26 12:54
nein, wird er nicht:
Code (perl): (dl
)
1 2 3 4 5 6 7 8 use Data::Dumper; my %hash; my $hostname = "test"; if (defined $hash{ $hostname }) { } print Dumper \%hash; __END__ $VAR1 = {}; erst wenn man einen level tiefer geht, passiert autovivification. Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: ![]() ![]() |