FlashMX wrote:
Read an external file which has a list of other external files listed
within. Like this.
external file contents
-------------------------
S: 1 F: file1.txt
S: 2 F: file2.txt
S: 3 F: file3.txt
S: 4 F: file4.txt
S: 5 F: file5.txt
Then I need to open each file from the list one at a time and check
for a certain string match. If found, do a search and replace and
write the results out to a temoporary file (file1.tmp). Then rename
that file back to the original (file1.txt). Then continue to the next
line until the end has been reached.
I can't figure out the logic for this.
You just gave us the logic. Why don't you try some code, following that
logic?
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>