use strict; use warnings; use utf8; use Test::More tests => 1; my $in = </) { $_ .= ''; $_ = '' . $_; $inlist = 0; } $have .= $_; } $have .= '

'; is $have, $want;