Your code:
probably does not do what you think it does - and I'm curious to know what you think it does.if ( $result != /dn:/ )
You probably want to see if $entry contains "dn" and negate that:
if ( $entry !~ /dn:/ )
Syntactic sugar causes cancer of the semicolon. --Alan Perlis
In reply to Re^7: Perl Builds an LDIF
by NetWallah
in thread Perl Builds an LDIF
by rfransix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |