Hi,

I want to pass a callback function to a search command. My function,
compare_attributes, uses the method compare on the entry object passed as
the 2th parameter. Is there a way to use the method compare without making
the Net::LDAP object a global?

sub compare_attributes
(...)
foreach my $a (keys %ATTR) {
$mesg = $LDAP->compare($entry, attr => $a, value => $ATTR{$a});
(...)

Thanks!

Reply via email to