Possible Duplicate:
How to replace a string in an existing file in Perl?
I need to create a subroutine that does a search and replace in file.
Here's the contents of myfiletemplate.txt:
CATEGORY1=youknow_<PREF>
CATEGORY2=your/<PREF>/goes/here/
Here's my replacement string: ABCD
I need to replace all instances of <PREF>
to ABCD