in reply to Having Trouble Removing a Newline from a Multiline String

Another way to do what you want:

$vulns =~ tr/\n//s;