John, Try for $entry ($mesg->entries) { $hashentry{$entry->get-value('uid')} = $entry; }
--Jim Harle On Mon, 1 Dec 2003, Graham Barr wrote: > Begin forwarded message: > > From: John Hennessy <[EMAIL PROTECTED]> > > Date: 1 December 2003 15:22:09 GMT > > To: [EMAIL PROTECTED] > > Subject: Net::LDAP results comapre woes. > > Message-Id: <[EMAIL PROTECTED]> > > > > Hi Graham, please excuse the direct contact, I appreciate you must get > > a lot of email. > > > > I am wanting to place the results of an LDAP lookup into a hash with > > the uid as the key and the resulting values as the hash values. > > I am doing this but it's dumb and I know it: > > > > @entries = $mesg->entries; > > push( @{$ldap{$uid}}, @entries ); > > > > My coding is letting me down here. Can you please direct me to a > > sample I can work through. > > > > Thanks in advance. > > > > John Hennessy > > Perth Western Australia. >