I've seen other questions about making two dimensional arrays, but most of these seem to be dealing with a lot of array variables within array variables. I'm having trouble following them. What I want to do is take this:
my @array = [ [50, 1], [52, 2], [45, 3], [60, 4] ];
And be able to reference it and print it out as a two dimensional array (I'm using this script to generate an html file.) But whenever I try to reference the length of @array, it comes out as 1. What is the right syntax for printing this array, or referencing either a pair of coordinates or an individual number?
For example, how would I reference the sub-array [50, 1] vs referencing the "1" element?