hotshot has asked for the wisdom of the Perl Monks concerning the following question:
I need that the '/etc/init.d' "hash" (the hash containg this path) will be first, '/root' second, and of course '/usr/bin' last.# if I have: @array = ( { path => '/usr/bin', # I have other keys except the 'path +', but it's not important here }, { path => '/etc/init.d', }, { path => '/root', } );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sorting array of hashes
by Anonymous Monk on Sep 22, 2002 at 11:01 UTC | |
|
Re: sorting array of hashes
by diotalevi (Canon) on Sep 22, 2002 at 14:55 UTC |