You've not said what you want to do with each of the results you're paging through. For example to print the DN for each result:
sub process_entry { my ($message, $entry) = @_; return unless $entry; say $entry->dn; $message->pop_entry; }
See Using the callback subroutine approach from Net::LDAP::FAQ.
In reply to Re: What do I use for the callback function in Net::LDAP::Control::Paged?
by marto
in thread What do I use for the callback function in Net::LDAP::Control::Paged?
by adamsj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |