in reply to Efficient sorting using the Schwartzian Transform
@temp = map { length $_ } @strings; @sorted = @strings[sort{$temp[$a]<=>$temp[$b]} $[..$#temp]; [download]