Combining a quoting construct in a map with a join seems to be less confusing to my eye.
$str = join q{, }, map qq{"$_"}, @arr;
Cheers,
JohnGG
In reply to Re: Array to list with quoted items
by johngg
in thread Array to list with quoted items
by miguelele
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |