rachitmohta11 has asked for the wisdom of the Perl Monks concerning the following question:
%hash = sort {scalar (split ("d",$a)) <=> scalar (split ("d",$b)) } (keys (%hash))
But it gives error saying use of implicit split to @_ is deprecated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sorting a hash in one line
by davido (Cardinal) on Jun 21, 2010 at 07:02 UTC | |
|
Re: Sorting a hash in one line
by LanX (Saint) on Jun 21, 2010 at 07:21 UTC | |
by ikegami (Patriarch) on Jun 21, 2010 at 08:17 UTC | |
| |
by davido (Cardinal) on Jun 21, 2010 at 07:25 UTC | |
|
Re: Sorting a hash in one line
by ikegami (Patriarch) on Jun 21, 2010 at 07:56 UTC | |
|
Re: Sorting a hash in one line
by jau (Hermit) on Jun 21, 2010 at 09:34 UTC | |
by LanX (Saint) on Jun 21, 2010 at 10:53 UTC | |
|
Re: Sorting a hash in one line
by Anonymous Monk on Jun 21, 2010 at 14:21 UTC |