Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The output will be "3" not "2"%hash = ("one", 1 , "Two", 2,"three", 3, "four", 4); @value = values(%hash); print("$value[1]");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: The strange ordering of hash values
by Corion (Patriarch) on Apr 19, 2007 at 16:58 UTC | |
by Anonymous Monk on Apr 19, 2007 at 17:18 UTC | |
by Herkum (Parson) on Apr 19, 2007 at 17:38 UTC | |
by Anonymous Monk on Apr 19, 2007 at 18:30 UTC | |
by jdporter (Paladin) on Apr 19, 2007 at 18:41 UTC | |
|
Re: The strange ordering of hash values
by jdporter (Paladin) on Apr 19, 2007 at 17:00 UTC | |
|
Re: The strange ordering of hash values
by thezip (Vicar) on Apr 19, 2007 at 17:04 UTC | |
by Jedaļ (Initiate) on Apr 19, 2007 at 21:13 UTC | |
| |
|
Re: The strange ordering of hash values
by McDarren (Abbot) on Apr 19, 2007 at 17:00 UTC | |
|
Re: The strange ordering of hash values
by derby (Abbot) on Apr 19, 2007 at 17:00 UTC |