in reply to From Array 2 string
How about stringifying the array:
my $str = "@arr";
Stringifying an array will use the current value of $" to separate the array elements. It defaults to a space (" ") - if you want newlines, tabs or an empty string (or semicolons or whatever), localize your change like this:
my $str = do { local $" = ""; "@arr" };
|
|---|