others have shown you how to get the array and how to display it in your desired format.
now, just as a suggestion for future, whenever you wonder
what exactly is in a data structure, use
Data::Dumper or a
dumper module of your choice. this will print out the structure nicely
formatted.
if you're additionally familiar with nested data structures
in perl (from exercise and trying, or from reading
perllol,
perlref),
then you won't have such problems any more. believe me =)
enjoy