in reply to Re^2: building an ldif from 2 files
in thread building an ldif from 2 files

Yes. The code is untested. Switch all '\'s in the path names to '/'s and Perl will do the right thing. Also, I just noticed a typo: nfile2 should be infile2.

There may well be other bugs or typos you'll need to fix. There idea here is for use to help you (learn Perl), not just give you solutions, so you may have to put a little effort in :)


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy