On Nov 11, 2003, at 13:01, Chris Masters wrote:

Please keep it on list

$mesg will always be defined. You need to look at
$mesg->code to
determine if there was a problem.


Can't call method "code" without a package or object reference at blah!!!!!

with the following code after calling search:

if($mesg->code)
{
   my $error = $mesg->code;
   print "LDAP Error: $error");
   return;
}

It seems to work for a while, then if there is no
activity (for 30 mins say), I run it again and I get
the error above!

What is going on?

What is happening to $mesg?

I have no idea.


What can I do if it's not undef and it's not a
Net::LDAP::Search object?

Find out what it is. If we don't know what it contains we cannot help


I'm using version 0.29 on a redhat 8.0 box in a mimedefang-filter.

Ah, try 0.30 from CPAN. There was a bug fixed in 0.30 where a number could be returned instead of an object.


Graham.


__________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree




Reply via email to