Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: while loop almost correct

by JadeNB (Chaplain)
on Nov 17, 2009 at 20:38 UTC ( [id://807787]=note: print w/replies, xml ) Need Help??


in reply to Re: while loop almost correct
in thread while loop almost correct

Hashes are good for this sort of work, the question number is the hash key and the answer is the hash value related to that key
Any time you find yourself thinking of using a number as a key into a hash, you should probably think about whether you mean to be using an array instead. In this case (but not every case: a sparse array is better implemented as a hash, if I'm not mistaken), I think that the answer would be ‘yes’.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-04-24 11:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found