Thread Frage zu Datenstruktur (24 answers)
Opened by Kai at 2010-03-01 14:43

pq
 2010-03-02 11:42
#133875 #133875
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
hast du denn die beiden verlinkten dokus gelesen?

statt
foreach $tp (keys %Host_Records{TP}) {

foreach $tp (keys %{ $Host_Records{TP}->{$host} }) {

leserlicher wird es damit:
Code (perl): (dl )
1
2
my $tps = $Host_Records{TP}->{$host};
foreach $tp (keys %$tps) {
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 Frage zu Datenstruktur