http://www.perlmonks.org?node_id=1001414


in reply to Sorting Array in Place

For the record, as of perl 5.10 (see the In place sorting section of the changelog), assigning the results of sort on an array to the same array is optimized to do an in-place sort.