#!perl use strict; my $text = 'foo bar'; $text =~ s/\n/
/g; print $text;