in reply to Re: Re: print not behaving as expected
in thread print not behaving as expected

It's much faster to go:
$response =~ tr/\r\n//d;

-- Randal L. Schwartz, Perl hacker