|Think about Loose Coupling|
Line by line parsing from one file, comparing line by line to another fileby web_developer (Initiate)
|on Jul 05, 2009 at 03:20 UTC||Need Help??|
web_developer has asked for the
wisdom of the Perl Monks concerning the following question:
OK, I am new to perl scripting.
I need help, I have a script that i am trying to do the following:
file1= list of unique ID numbers
file2= list of unique html code with the unique ID numbers within the code per line(about 16k-bytes each seperated by carage.
and so on for example..
<html>...... UNIQUE ID..</html> <html>...... UNIQUE ID..</html> and so on..
Both are standard text files.
July 4, 2009 12:09:22 AM EST
for example, file1 line 1 has 12345 for example,
file2 has .<html>...... 12345..</html>
on line 1. I need line 1 of file2 to
be made into a new file called 12345.html
July 4, 2009 12:14:56 AM EST
Now file2 is data_file array,
file1 is names_file array and
the results being several unique (names).html
I am new to perl but this is absolutely riddled with errors and I have written this according to examples of similar scripts.