NathanE has asked for the wisdom of the Perl Monks concerning the following question:
But, when I try to retrieve the values, I end up with keys that contain a different $DestPort than the $DestPort I have specified for $Stats{$DestPort}.$Stats{$DestPort}++; $Stats{$DestPort}{covert}{"$intSrcFound|$hshIPtoDomainIndex{$strDst}|$ +DstIP|$SrcIP|$DestPort|$Protocol"}++;
Which is where I run into the aforementioned problem of $entry containing an element that should corrospond to $TopPort$a being completely off. Is there an issue with hashes of hashes contaminating each other, or is there some small property I'm unaware of here?foreach $entry (sort keys %{ $Stats{$TopPorts[$a]}{covert} }) { # my code to print out various HTML # elements is typically here }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: hash of hash - incorrect values?
by friedo (Prior) on Aug 03, 2005 at 19:30 UTC | |
by NathanE (Beadle) on Aug 03, 2005 at 19:33 UTC | |
by ikegami (Patriarch) on Aug 03, 2005 at 19:40 UTC | |
by VSarkiss (Monsignor) on Aug 03, 2005 at 19:42 UTC |