in reply to Re: How to replace text in external filein thread How to replace text in external file
And something like Tie::File to make the file reading / rewriting nice and simple.