Just another Perl shrine | |
PerlMonks |
Re^6: Merging Two CSV files Based on Two Columnsby TheCanadian (Initiate) |
on Sep 19, 2012 at 16:17 UTC ( [id://994478]=note: print w/replies, xml ) | Need Help?? |
Hi: Tux I finally, with your help got the script to work. I discovered that the common column had to have the same column header. Your line below with the || really helped because it turned out there were 203 usernames from final.csv that were not found in the HCDir.csv; this trapped the error instead of displaying a blank CSV file. Lastly, I needed to turn off "use strict" because it produces the following error.
Other than that the script worked great. Below is a copy of my modified script.
I want to thank you again, I am really new to PERL and I learn primarily through examples. Without your help I would still be lost. I like PERL and would like to continue using PERL. I also purchased the Fourth Edition of "Programming Perl" by Tom Christiansen, Brian d Foy, and Larry Wall; dated 2012. I gather this is the Bible but it did not help with my specific situation. Yours truly, TheCanadian 20120919-1207 :-}
In Section
Seekers of Perl Wisdom
|
|