Or even simply (without extra testing for the emptiness of the array — if it's empty, join will join nothing):
$text = join ' ', map qq("$_"), @Array;
In reply to Re^2: How do I output each Perl array element sourrounded in quotes?
by almut
in thread How do I output each Perl array element sourrounded in quotes?
by boom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |