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....
Also, you may want to try Data::Dumper. Example:
use Data::Dumper; # simple procedural interface print Dumper($foo, $bar);