[perl] parse and modify file without creating a copy
I don't think this is a "perl one-liner" of find and replace. I'm trying to auto-fill some information in a listing of files. The simplest example is that in the files the following exists:
-- Date :
I would want the script to find this and populate it with something like
-- Date : 20101004-1758
I have a few more similar fields to autofill, and I'd like to do this from within a larger perl script I'm developing to process these files.
So, how I perform in-place file modification from within a perl script?
Thanks.
|