Now @text should have text,text2,text3. You don't need the intermediate step of converting newlines to commas in order to split.my @text = split(/\n+/,$file);
In reply to Re: Substitution
by DBX
in thread replacing one or more newlines with commas
by Kiko
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |