Let me preface with "Sorry to ask a dumb question but..." With that said, I'm quite new to perl and I wanted to see if there was a way to search a text file for a particular string and replace it with a different value. The end result would be an updated text file on disk with the necessary changes.
Example: file.txt exists on the drive. Scalar $Server="Win2kDC1" File.txt contains a string %SRV%. I want to search for every occurence and replace with $Server. File.txt would be updated in place if possible. I have done this before with vbscript and RegExp, but I am new to perl and do not know the syntax. Any help would be greatly appreciated. Again, sorry for the newbie question. Eric _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
