in reply to Re^4: Reference to sort results
in thread Reference to sort results

Data: Arrays has a wealth of information about the difference between lists and arrays.

It might help to note that @arr2=@arr1 *also* makes a copy of the array. The part you seem to be having trouble with is that arrays are data types and lists are temporary collections of scalars used as arguments. When you use an array as an argument where a list is expected, Perl treats the array elements as a list.