in reply to printing elements of an array on new lines

And here is another that uses the -l command switch (and that's dash elle, not dash one).
#!/usr/bin/perl -l my @array = 0..9; print for @array;

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Replies are listed 'Best First'.
Bubba Asks
by Arbogast (Monk) on Aug 23, 2003 at 17:06 UTC
    Why not simple over fancy?? my @people = ('fred', 'bill', 'charley'); foreach my $person (@people) { print "$person\n" };
      Because this is Perl and, repeat after me, "There Is More Then One Way To Do It"
      And why don't I learn to format my answer :)