in reply to Re: Unexpected results when removing a HERE-DOC "ending" newline, with map and/or s/// depending on context.
in thread Unexpected results when removing a HERE-DOC "ending" newline, with map and/or s/// depending on context.
However, $var4 still explodes on a read-only value, and I still haven't found, apart from eval'ing the whole thing, how to do the same for $href->{key3} = {...my ($var3) = map { s/\r?\n\Z/(munched)/; $_ } <<EOT; Var also has an interpolated var: $interpolated And the last newline is also absent -> EOT
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Unexpected results when removing a HERE-DOC "ending" newline, with map and/or s/// depending on context.
by fglock (Vicar) on Dec 09, 2004 at 12:55 UTC |