my $var4; # This generates "Modification of a read-only value attempted at"; eval { # Still dies, even when in list context. # $var4 = map { s/\r?\n\Z/(munched)/; $_ } <