Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Getting loopy while appending HoH

by toolic (Chancellor)
on Mar 29, 2010 at 23:23 UTC ( #831732=note: print w/ replies, xml ) Need Help??


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);


Comment on Re: Getting loopy while appending HoH
Select or Download Code
Re^2: Getting loopy while appending HoH
by jedikaiti (Friar) on Mar 29, 2010 at 23:33 UTC

    Doh! Crap. *headdesk*

    Yea, the Apids are the same. I clearly wasn't thinking when I made those the keys (which I did because that's what I'm going to need to sort by later).

    OK, back to the drawing board...

    Thanks!

    Kaiti
    Swiss Army Nerd

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://831732]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2014-09-02 20:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (29 votes), past polls