You can convert newlines to spaces with: $var =~ tr/\n/ /; or, maybe better: $var = join ' ', split ' ', $var; That split is the magical one that trims all whitespace.
After Compline,
Zaxo
In reply to Re: Combine multiple lines into one line
by Zaxo
in thread Combine multiple lines into one line
by hyliau
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |