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....
Map can also be used, but sometimes hard to read when you have lots of things going on.
map{ print "element $_\n" } @array;