in reply to How to sort a multidimensional array
my @data = ('Jeff Goldblum Actor', 'Mary Heartman Priest', 'John Ericsson Mathmetician', 'Tony Cisneros Chef'); use Sort::Key 'keysort'; my @sorted = keysort { (split /\s+/, $_)[2]/ } @data;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to sort a multidimensional array
by mohan123 (Novice) on Jul 11, 2006 at 10:34 UTC | |
by benperl (Initiate) on Jul 11, 2006 at 16:50 UTC | |
|