in reply to replace field

There is another recent node that talks about updating stuff in the middle of files..
http://www.perlmonks.org/?node_id=784094
there is some good info in there and several different approaches to this problem.