Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Associative array

by Polyglot (Chaplain)
on Jul 13, 2009 at 06:29 UTC ( [id://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~

Log In?
Username:
Password:

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

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

    No recent polls found