in reply to Re: Reverse sort array
in thread Reverse sort array
Or, if you want to do it without ?: and add a slight touch of obfuscation:
for (sort { "-"x!!$reverse.1*($a cmp $b) } @array) { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Reverse sort array
by ikegami (Patriarch) on Aug 20, 2009 at 14:40 UTC |