Is there an easy way to print out a Perl array with commas in between each element?
Writing a for loop to do it is pretty easy but not quite elegant....
You can simply print it.
print
@a = qw(abc def hij); print "@a";
You will got:
abc def hij