Do you want all elements of the array at once? Then use @array. Or do you want to process each element of the array? Then use
foreach my $element (@array) { print "I am processing the element '$element'\n"; };
You might want to see perlsyn.
Further reading would be map if you want to transform elements of one array into another list.
In reply to Re: array question
by Corion
in thread array question
by gogoglou
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |