From: Rui M. <rmo...@wh...> - 2000-07-03 09:15:27
|
Hi all. What version of perl-ldap module are you working with ? I use shift_entry method in several parts of my code, and it works OK. I'm currently using version 0.19 of perl-ldap module. Regards. Rui. Graham Barr wrote: > ----- Forwarded message from Jie Gao <J....@is...> ----- > > Date: Sun, 2 Jul 2000 17:26:43 +1000 (EST) > From: Jie Gao <J....@is...> > To: gb...@po... > Subject: feedback on Net::LDAP > > Dear Graham, > > On Net::LDAP::FAQ manual page, there is this paragraph: > > # as an array > > my $max = $mesg->count; # How many entries were returned from the search > > for( my $index = 0 ; $index < $max ; $index++) { > my $entry = $mesg->entry($index); > # ... > } > > # or as a stack > > while( my $entry = $mesg->shift_entry) { > # ... > } > > I found the 2nd method won't work: it just hangs at the end of the loop. > > The first one works wonderfully. > > Thanks, > > Jie > > ----- End forwarded message ----- -- Rui Monteiro WhatEverNet Computing, SA rmo...@wh... Praca de Alvalade, 6 - Piso 6 Phone: +351 21 7994200 1700 036 Lisboa - Portugal Fax: +351 21 7994242 http://www.whatevernet.pt |