use strict; use warnings; use Test::More tests => 1; my $have = 'foo bar'; my $want = 'foo

bar'; $have =~ s/\n/
/; is $have, $want;