in reply to search and replace with a temp file at a certain substr position
Substr can do the replacing for you: my $ns = substr( $_, 13, 8, 'blah'); but it appears that you aren't printing what you want to *NEW, print NEW $_;
I don't understand your regex. What is it supposed to match?
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: search and replace with a temp file at a certain substr position
by drock (Beadle) on Jul 20, 2005 at 21:11 UTC |