I'm having a nasty time with the following code:
push @endArray, [$arrayToSort[$i], $arrayToSort[$i]];
I'm trying to push the contents of one 2D array into another, one item at a time. In the above example, I'm trying to do it by (making a fool of myself and) creating a mini-array to push onto @endArray.
The thing is, almost every flavor of what I've tried has given me the ADDRESS of the array item, and not the 2D value of the item itself. What am I doing wrong? Do I need to dereference this address? Is there another way to pass this info??