in reply to Re: Changing quoted strings spanning more than one line
in thread Changing quoted strings spanning more than one line
I wonder how the $1 =~ tr/\n// in your solution doesn't die with "modification of a readonly value attempted"?
Have a peek at this:
local $, = ", "; local $\ = "\n"; for (1..2) { print map { ++$_ } 0..4; }
1, 2, 3, 4, 5 2, 3, 4, 5, 6
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Changing quoted strings spanning more than one line (modifying constants)
by shmem (Chancellor) on Sep 19, 2007 at 20:46 UTC | |
by ikegami (Patriarch) on Sep 19, 2007 at 21:01 UTC |