perlknight has asked for the wisdom of the Perl Monks concerning the following question:
All, I am doing a search with base name of an object which only has attribute. The count method returns 0, I am calling attributes and dn method, it's bomming out with the following error:
Can't call method "dn" on an undefined value at ./query_ldap2.pl line +83, <DATA> line 283.
Any idea as to why? Thanks.} elsif ( $result->count() eq 0 ) { my $entry = $result->entry(0); print "********",$entry->dn(),"*********\n"; + #my @pattrs = $entry->attributes; #print "******** @pattrs **********\n"; } else {
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: search result on Net LDAP
by ikegami (Patriarch) on Jan 31, 2007 at 03:35 UTC | |
Re: search result on Net LDAP
by jesuashok (Curate) on Jan 31, 2007 at 04:30 UTC |
Back to
Seekers of Perl Wisdom