in reply to Re: How do I output each Perl array element sourrounded in quotes?
in thread How do I output each Perl array element sourrounded in quotes?
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How do I output each Perl array element sourrounded in quotes?
by CountZero (Bishop) on Apr 18, 2009 at 17:48 UTC | |
by AnomalousMonk (Archbishop) on Apr 18, 2009 at 21:32 UTC |