in reply to Re: How to make a variable in a single line (remove newlines)
in thread How to make a variable in a single line

chomp()?

or better yet,
local $/;

For more on $/... perlvar

Replies are listed 'Best First'.
Re^3: How to make a variable in a single line (remove newlines)
by Anonymous Monk on Jun 05, 2013 at 13:14 UTC
    chomp doesn't remove newlines, it chomps