I'm trying to extract or slice an individual row from a multidimensional arry. Below is genericized code, can you complete?
my @RowOne = ("a","b","c");
my @RowTwo = ("d","e");
my @RowThree = ("f","g","h","i");
my @TwoDimArray = (\@RowOne,\@RowTwo,\@RowThree);
my $ChosenRow = 1;
#
#Now I need one of the following:
#The Chosen Array
my @ChosenArray = ???
#or
#The number of elements in the Chosen Array
my $NumberOfElements = ???
It seems simple enough, but my attempts have crashed and burned. And I haven't found the answer just floating about in cyberspace. Is there a one line way to do this, or do I have to create it in a loop?
thanks - olaf
Do you believe in miracles? Yes!