Thread Komplexe Datenstruktur in Perl aufbauen (29 answers)
Opened by Matthias at 2010-02-26 12:54

pq
 2010-02-26 13:36
#133723 #133723
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
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: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Komplexe Datenstruktur in Perl aufbauen