From: Graham B. <gb...@po...> - 2000-05-12 20:57:16
|
----- Forwarded message from "Kevin Konowalec" <kev...@ua...> ----- From: "Kevin Konowalec" <kev...@ua...> To: "Graham Barr" <gb...@po...> Subject: Quick question Date: Fri, 12 May 2000 11:41:53 -0600 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <200...@po...> Hi again... Quick question: what is the syntax for grabbing individual fields out of a returned record? None of the docs really show how to use the get() method. Is there anywhere that I can find simple example programs that uses the perl-ldap modules? For example, in perldap, I'd do something like this: $entry = $conn->search("$BASEDN","ONE","($filter)"); if (!$entry) { die "Unable to find any records matching $filter\n"; } $status = $entry->{affiliationcode}[0]; What would the equivilant syntax be in perl-ldap? Thanks!! Kevin ----- End forwarded message ----- |