in reply to Re^2: Changing quoted strings spanning more than one line (modifying constants)
in thread Changing quoted strings spanning more than one line
Interesting, though.
local $, = ", "; local $\ = "\n"; for ($foo,$bar) { print map { ++$_ } 0..4; }
1, 2, 3, 4, 5 2, 3, 4, 5, 6
The outer $_ isn't related to map's $_. But it seems like map's $_ isn't being reset each time through the loop. What gives? Bug or some (undocumented) feature?
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Changing quoted strings spanning more than one line (modifying constants)
by ikegami (Patriarch) on Sep 19, 2007 at 21:01 UTC |