in reply to printing all elements of arrays

Perl has lots of different ways to handle arrays. Can you explain better what output you are actually looking for?