in reply to join - join two files according to a common key

So, using your code above, I ran
./join.pl --delimiter , --on 1 --missing 1 --missing 2 --warn-on-dupli +cates 1 --warn-on-duplicates 2 --progress usa_ldap.csv HPSMcmdb.csv
In the case where the key was missing in file 1, there is no key output for the line. I guess what would work for my data is if the key from the right file were output in the left key column (which for me is column 1). I am looking into the code to figure out how to code that specific special case - but if anyone already has a solution, I would really appreciate it. Thank you

Replies are listed 'Best First'.
Re^2: join - join two files according to a common key
by Anonymous Monk on Mar 12, 2018 at 16:11 UTC
    When I wrote In the case where the key was missing in file 1 it might be better worded "when there is a line with a key in file 2 that does not have a corresponding line in file 1".