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
In reply to Re: search and replace with a temp file at a certain substr position
by Zaxo
in thread search and replace with a temp file at a certain substr position
by drock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |