in reply to Re: Replace only selected characters
in thread Replace only selected characters
Interesting. I wondered why the look-ahead (and not just /,/g), but now I see.
Note that you can do this:
push @p, pos $l while $l =~ m{(?=,)}g;
As:
push @p, @- while $l =~ /,/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Replace only selected characters
by rohanan (Novice) on Oct 17, 2011 at 16:23 UTC |