in reply to What do I use for the callback function in Net::LDAP::Control::Paged?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What do I use for the callback function in Net::LDAP::Control::Paged?
by adamsj (Hermit) on Oct 08, 2025 at 17:32 UTC |