s/\n+/,/g for @array # Even better... tr/\n/,/s for @array [download]
In reply to Re: Substitution by runrig in thread replacing one or more newlines with commas by Kiko