in reply to Re^2: Global substitution and report
in thread Global substitution and report
$str =~ s{$pattern}{push @positions, pos $str; $substitution}eg
I never worked with pos so I don't know if that helps you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Global substitution and report
by Outaspace (Scribe) on Aug 27, 2007 at 10:14 UTC | |
by moritz (Cardinal) on Aug 27, 2007 at 11:06 UTC | |
by Outaspace (Scribe) on Aug 27, 2007 at 12:03 UTC |