print(join(',', map "'$_'", @foo), "\n");
But what about something with an apostrophe in it (say The People's Republic of China, since you're mostly listing countries). You should probably be using Text::CSV_XS
In reply to Re: map array elements with single quotes
by ikegami
in thread map array elements with single quotes
by kalyanrajsista
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |