Net::LDAP::Class::SimpleIterator - iterate over Net::LDAP::Class objects
my $iterator = $user->groups_iterator; while ( my $group = $iterator->next ) { # $group isa Net::LDAP::Class::Group } printf("%d groups found\n", $iterator->count);
Net::LDAP::Class::SimpleIterator uses a closure (CODE reference) to implement a simple next()-based API.
Implements the standard object initialization.
Required in new(). sub_ref is called on every invocation of next().
Calls code() and returns its value, incrementing count() if the value is defined.
Returns the number of iterations of next() that returned defined.
Deletes the internal code reference.
Tests for the existence of the internal code reference, returning true if the internal code reference no longer exists and false if it does.
Peter Karman, <karman at cpan.org>
<karman at cpan.org>
Please report any bugs or feature requests to bug-net-ldap-class at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-LDAP-Class. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-net-ldap-class at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Net::LDAP::Class
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Net-LDAP-Class
CPAN Ratings
http://cpanratings.perl.org/d/Net-LDAP-Class
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-LDAP-Class
Search CPAN
http://search.cpan.org/dist/Net-LDAP-Class
Copyright 2009 by Peter Karman.
All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Net::LDAP, Net::LDAP::Batch
To install Net::LDAP::Class, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::LDAP::Class
CPAN shell
perl -MCPAN -e shell install Net::LDAP::Class
For more information on module installation, please visit the detailed CPAN module installation guide.