There is no need to use an if-then, just try the substitution and if there is nothing to substitute then it wont substitute.
But more than likely you can just chomp $input.
In reply to Re: formatting newline characters
by princepawn
in thread formatting newline characters
by Becky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |