|
|
| XP is just a number | |
| PerlMonks |
Merging filesby ellem (Hermit) |
| on Oct 26, 2001 at 15:59 UTC ( [id://121655]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.ellem has asked for the wisdom of the Perl Monks concerning the following question:
I have some files that contain similar data. Something along the lines of: File1.txt Name,SSN,File "Doe John",123456789,3447 File2.txt Name,Salary,ZIP "Doe, John",50000,10003 I would like to merge (join?) this data together. I have 7 or 8 files like this. The only constant (unfourtunately) is the Name. Of course as people get married and learn how to spell the Name occasionally changes. My goal is to write something that will merge the file and create two files: Matches and Exceptions. I have read some things (5.10, 14.4, 14.8) in the Perl Cookbook but I am having a hard time wrapping my head around some of this stuff. any ideas? -- lmoran@wtsgSPAM.com print "\x{263a}"
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||