Hi, I have an array which looks like this:
array[0]: 6 8
array[1]: 12 9 6
array[2]: 33 32 5
array[3]: 8 6
What I want to do is to sort this array that it looks like this:
array[0]: 6 8
array[1]: 6 9 12
array[2]: 5 32 33
array[3]: 6 8
I know I can sort the array with @newarray = sort {$a cmp $b} @array;
, but I need to sort the elements in each line as well. How can I do that?