Hi, i am new to perl.I am in a problem,So please help me to get a solution "I want to change texts in 172 files available at a directory /pages(there are files also in a sub-directory),they all are text files. There are also some text files,which I no need to change.I want one single script to open all these files,match the particular string and replace them with new string.
I tried with a singel file,able to open that file,make changes ,but only write in another file.I want to write the changes in same old file. the string needed to find: <td bgcolor=#336699 valign=top width=10><img src="a web link here" images/corner_2.gif" width="10" height="10"></td> the string to be replaced is; <td bgcolor=#336699 valign=top width=10> <script> document.write("<img src=" + url + "/images/corner_2.gif width='10' height='10'></td>"); </script> Can anyone help me in this, With Thanks in advance, prabu. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.620 / Virus Database: 399 - Release Date: 3/11/2004 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>