in reply to Re^2: replace fieldin thread replace field
Maybe you could use Tie::File ? You can process the file as an array and modify the lines in place using ikegami's suggestion.HTH!