in reply to Multiple Search and Replace in Single Line

If you're wanting to strip more than one thing, just use |

$var =~ s/\s+|\n//g;

However, the character class \s contains \n, so it's redundant.