I need a simple Perl script to replace strings in an XML file. Machine: Windows Server 2003 with ActivePerl 5.8.6
We need to manipulate an XML file for IIS config offline and the VB code needed to search and replace one string in the file is hideous and buggy. Is there a simple Perl script to read in a file, search for "My Text-2", replace that with "My Text" and write the file back to either the original or a separate file?
Perl has to be the easiest language for this...prove me right!
Simplest, fastest one wins...