Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Associative array

by Polyglot (Monk)
on Jul 13, 2009 at 06:29 UTC ( #779474=note: print w/ replies, xml ) Need Help??


in reply to Associative array

It looks to me like you are trying to do two mutually exclusive things at the same time: print multiple values and print just one value. You have used a "for" loop as if you were going to print every value, but then only want to print the "correct" one.

Could it be that the "correct" value is not the first one in the list, and that the first value looked at (not necessarily a "correct" one) is uninitialized?

Blessings,

~Polyglot~


Comment on Re: Associative array

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2014-09-18 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (108 votes), past polls