From: Bouarich, R. <Red...@co...> - 2000-07-24 09:18:54
|
Hello, After performing a search operation like the following for instance $mesg = $ldap->search( base => BASEDN, filter => $filter, cn => \@_, ); die $mesg->error if $mesg->code; my $entry; while ($entry = $mesg->pop_entry()) { #get the returned entry my $entry = $mesg->pop_entry(); #to print out the dn of the returned entry: print "dn:",$entry->dn(),"\n\n"; #to print out for instance the sn of the returned entry: my $v; foreach $v ($entry->get("sn")) { print "value of the sn is $v\n"; } } Hope it will help. Reda. -----Original Message----- From: spencer [mailto:sp...@co...] Sent: Monday, July 24, 2000 11:06 AM To: per...@li... Subject: Displaying Search Results Hi, I am new to perldap. Can someone show me how I can print out search results after calling the ldap->search? Thanks. spencer |