in reply to array question

Do you mean something like this?

for my $element ( @array ) { print $element . "\n"; }