in reply to Re^3: Global substitution and report
in thread Global substitution and report
doesn't replace correct if the replacement is something like "\L$1\E".$wFound = $szText =~ s/$szSearchText/push @wPos, pos $szText;$szReplac +eText/eg; foreach my $Line (@wLines) { $wLine = Convert::posToLine($szText, $Line); if ($wLines[-1] != $wLine) { push @wLines, $wLine; } print "Line: $wLine\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Global substitution and report
by moritz (Cardinal) on Aug 27, 2007 at 11:06 UTC | |
by Outaspace (Scribe) on Aug 27, 2007 at 12:03 UTC |