in reply to Re: How to keys($array_ref)?
in thread How to keys($array_ref)?

Figured it out. I was accidentally creating a second reference in the return array with

my @returns = ["blah","blah","blah"]; return(\@returns);
which should have been:
my @returns = ("blah","blah","blah"); return(\@returns);
so I ended up with a reference to a reference to the array I was trying to access instead of a reference to the data.