Re: How do I find the key of a specific hash element?
[email protected] (jshock)
| Newsgroups | perl.beginners |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <3b06d8f9-66ca-4ea9-a37b-79b3be298001@y38g2000hsy.googlegroups.com> |
On May 21, 3:56 pm, [email protected] (Rob Dixon) wrote: > I think you're getting confused with hashes, which will hand back their key / > value pairs in an unpredictable order. Arrays are ordered lists of scalar > values, and their 'key' is the position of the data item in the list, starting > with zero for the first one. Thanks Rob. You are right of course. I switched to just using an array.