in reply to Array of ($1, $2, ...) in replacement part of s///?
One handy feature is that when you say $s =~ s/re/expr/ge within expr, $s will be the original $s and the offsets in @- and @+ will be offsets into the original $s, even if earlier matches changed the length of $s.
Would be nice if $& (and the vaporware @&) were usable in the substitution part of s/// without penalty...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Array of ($1, $2, ...) in replacement part of s///?
by flounder99 (Friar) on Jan 28, 2004 at 21:02 UTC | |
by diotalevi (Canon) on Jan 28, 2004 at 21:28 UTC | |
by flounder99 (Friar) on Jan 30, 2004 at 15:18 UTC |