Thanks for all of the help. To answer Paul's first question, I think I didn't explain very well what I am trying to do.
There are a few thousand html files that I need to modify. There is a string that I need to replace that will be different in each file. example: author_id = '60000" (the 60k will be one of 7 different numbers. The replacement number will also be 5 digits, but each html file will be a different number. I have in a CSV file that contains the filenames and the corresponding 5 digit replacement number. example: htmlfile_1.html,55634 I need the script to open each html file listed in the CSV and replace the author_id number with the one in the CSV file. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/