http://qs321.pair.com?node_id=476599


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