in reply to search and replace with a temp file at a certain substr position
print NEW s/$ns/"blah"/; [download]
s/$ns/"blah"/; print NEW $_; [download]