in reply to Multiple Search and Replace in Single Line
something like
$var =~ s/$_//g for qw(\n \s+);
Cheers Rolf