in reply to Printing Array with quote and comma

Try this:
#!/usr/bin/perl -w use strict; my @arr = qw(book dog cat); print "[", join("," , map {qq('$_')} @arr), "];\n";

--Darren