print "$_\n" for @array;
Cheers - L~R
Update: I love Perl
In a short span of time numerous solutions have been provided. For such a simple task as printing the elements of an array - lots of Perl has been used:
Let me add a couple more using $\ and map
{ local $\ = "\n"; print $_ for @array; } or print map {$_ .= "\n"} @array;
In reply to Re: printing elements of an array on new lines
by Limbic~Region
in thread printing elements of an array on new lines
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |