Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: What do I use for the callback function in Net::LDAP::Control::Paged?

by marto (Cardinal)
on Oct 08, 2025 at 07:27 UTC ( [id://11166441]=note: print w/replies, xml ) Need Help??


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
    Thanks so much! Now I understand--and thanks also for the link to the FAQ.

    They laughed at Joan of Arc, but she went right ahead and built it. --Gracie Allen

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11166441]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2025-12-16 21:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (97 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.