Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I need to sort only on the SECOND delimited thing. So in this example, I need to sort the hash by the state the user is from.$hash{$username} = "12:NY:me@yoiu.com";
I will never need to sort by any other fields but this one. Can someone give me pointers?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sort a hash with split values
by shmem (Chancellor) on Jun 21, 2006 at 17:45 UTC | |
by Anonymous Monk on Jun 21, 2006 at 18:14 UTC | |
| |
by derby (Abbot) on Jun 21, 2006 at 19:21 UTC | |
|
Re: sort a hash with split values
by salva (Canon) on Jun 21, 2006 at 20:40 UTC | |
|
Re: sort a hash with split values
by TedPride (Priest) on Jun 22, 2006 at 04:00 UTC | |
|
Re: sort a hash with split values
by Fletch (Bishop) on Jun 21, 2006 at 17:43 UTC |