Tie::File is what you need.
Enjoy, Mickey
In reply to Re: Updating a conf file non-destructively by mickeyn in thread Updating a conf file non-destructively by rlb3