Hmmm, I can't see your problem - does the name, Net::LDAP::LDIF, not provide any clues or hints as to what it might be able to handle by default/design ?
I'd be willing to bet that Net::LDAP and the aformentioned Net::LDAP::LDIF, taken together, facilitate the processing of an LDIF file a line at a time.
A user level that continues to overstate my experience :-))