in reply to Is there a better solution: data from Net::LDAP?

Hi!

I don't know much about that module (nothing), but here's
something:
while (my $Current=$mesg->pop_entry) { foreach my $Attr($Current->attributes) { $UserInfo{$Attr}=$Current->get_value($Attr); } };

Don't shoot me for this one, I have NO clue to this module,
just read the man page to find the pop_entry, and got rid
of the join and split because I didn't understand why those
were there

Code is untested ofcourse ;)))


upd. changed the curly bracy thingies
(they were: get_value{$Attr};

Replies are listed 'Best First'.
Re: Re: Is there a better solution: data from Net::LDAP?
by mrmick (Curate) on Nov 23, 2000 at 19:23 UTC
    Nope. Didn't work. Thanks for the attempt, though...
    Can't use subscript on subroutine entry at ldaptest1.pl line 26, near +"$Attr}" (Did you mean $ or @ instead of &?) Execution of ldaptest1.pl aborted due to compilation errors.
    I think I'll keep what I already have since it's easy to manipulate, unless thee's another solution out there.

    Mick
      Ahem.. I think I used curlies ('{ }') when I should
      have use thingies ('( )') ;)))

      I can't test, don't have the module ;))

      Good luck!!