Category: Multiline Parser
Author/Contact Info Jorge Moratilla
Description: This is a first-try of a parser of ldif entries (ldap entries). It finds one entry depending on one criteria and returns the full entry. Usefull for LDIF troubleshooting

$/ = '';

while (<>) {
        if (/dn:/ ... /\n\n/) {# begin and end of a LDIF entry
                print $_ . "\n" if (/dn:: /); # our simple search crit
+eria and action.
        }
}