in reply to Reference to sort results

Why is it ugly?
return [ sort @stuff ]

Replies are listed 'Best First'.
Re^2: Reference to sort results
by Marshall (Canon) on Aug 05, 2009 at 12:34 UTC
    This is "ugly" because if you pass me a ref to an array to be sorted, there will be NO return value. The array has been sorted when I return. The sub just does the sort and that's it. I replied at the wrong level. Ooops. Sorry if I offended.