in reply to Getting loopy while appending HoH
Keys to a hash must be unique. $apid is the same value for every iteration through your loop. If you need to support multiple values per key, you could use a Hash-of-Arrays... data structure.
As an aside, Data::Dumper is a convenient way to display your whole data structure:
print Dumper(\%cmdData);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Getting loopy while appending HoH
by jedikaiti (Hermit) on Mar 29, 2010 at 23:33 UTC |
In Section
Seekers of Perl Wisdom