For completeness, here's a verbose solution:
my $x; my @a = qw(one two three); print "$a[$_-1], " while $x++ < $#a; print "$a[$#a]";
In reply to Re: How do I print an array with commas separating each element?
by Coruscate
in thread How do I print an array with commas separating each element?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |