# Was building $var3 in scalar instead of list context # my $var3 = map { s/\r?\n\Z/(munched)/; $_ } < EOT