I wrote:
You two seem to be saying the same thing: An entry should end with a line terminator, but not with several line terminators (which give blank lines).
Duh, sorry, I didn't see you said it _begins_ with a newline.
Anyway, Net::LDAP::LDIF is doing the right thing: When you write multiple entries to the same Net::LDAP::LDIF object, it puts an empty line between them.