in reply to Accessing 2D array values and comparing

I'm not sure what you're trying to do, but I think you should change:
push (my @arrayEquals, @array);

to:

push (@arrayEquals, @array);
You already declared @arrayEquals at the top of your code.