Problems? Is your data what you think it is? | |
PerlMonks |
Substitute text string in a file with matching text from another fileby tariqahsan (Beadle) |
on Aug 12, 2005 at 15:18 UTC ( [id://483300]=perlquestion: print w/replies, xml ) | Need Help?? |
tariqahsan has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
What would be an efficient way to substitute lines of text file 1:
123|abc|777 file 2:
789|efg|2222222 After processing file 2 using file 1 the output of it should be -
789|efg|2222222|NO MATCH
File 2 is quite a large file and file 1 has about 2000
Back to
Seekers of Perl Wisdom
|
|