On Nov 11, 2003, at 11:58, Chris Masters wrote:
Hi Graham,
Did you forget to add your comment?
No, I should not have sent it.
Many people email me directly and I just forward them to the list. I was not thinking and just forwarded your mail to the list when I should not have.
Graham.
Thanks, Chris
--- Graham Barr <[EMAIL PROTECTED]> wrote:Begin forwarded message:object referenceFrom: Chris Masters <[EMAIL PROTECTED]> Date: November 11, 2003 11:13:12 GMT To: [EMAIL PROTECTED] Subject: Can't call method X without a package orMessage-Id:<[EMAIL PROTECTED]>works
Hi All,
I'm getting this problem intermittenly i.e. itfor the first few runs, then it fails.entry
Getting this error:
Can't call method "entry" (or count etc) without a package or object reference at ... (the firstcall in the if test)AddressGuard
with the following code (I'm calling a function containing this code many times with the same connection handle):
undef $mesg;
eval { $mesg = $ldap->search ( base => "ou=my,dc=domain,dc=com", filter => "(mail=$recipient)", attrs => ['l'] ) || undef $mesg;
if(defined($mesg) && $mesg->entry(0)) { $My_Location = $mesg->entry(0)->get_value('l'); } else { $Unknown = 1; } };
if($@) { print "LDAP Error: [EMAIL PROTECTED]"; }
Why is this happening intermittently?
What am I doing wrong?
Is this a problem with the module itself?
My program is running as a daemon, and I need to restart to get it to work.
TIA, rotis23
__________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mailhttp://antispam.yahoo.com/whatsnewfree
__________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree