in reply to Re: Join and append to last element?
in thread Join and append to last element?

That's better worded using 'for'. That is not how you use map. This is your idea reworded to not be so silly:

$result .= "$_\n" for @lines;

Seeking Green geeks in Minnesota