in reply to Re: sorting hash by a certain value (that it is in an array)
in thread sorting hash by a certain value (that it is in an array)
I don't see how the example by brx gives me that. when I print out the %books hash using this:%books=( '54' => ['enlgish', 'bob falicas', 17], '34' => ['enlgish', 'dani M. rod', 54], '24' => ['spanish', 'ramk rovale', 41], );
I get the same unsorted result.while (my($key, $value) = each(%books)){ print "$key: $value\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: sorting hash by a certain value (that it is in an array)
by Corion (Patriarch) on Jul 17, 2012 at 13:34 UTC | |
|
Re^3: sorting hash by a certain value (that it is in an array)
by jethro (Monsignor) on Jul 17, 2012 at 13:35 UTC | |
|
Re^3: sorting hash by a certain value (that it is in an array)
by clueless newbie (Curate) on Jul 17, 2012 at 16:06 UTC | |
|
Re^3: sorting hash by a certain value (that it is in an array)
by brx (Pilgrim) on Jul 17, 2012 at 15:50 UTC |