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....
Just use join():
# assuming @array is your array: print join(", ", @array);