Thank You Graham,
On 2/21/07, Graham Barr <[EMAIL PROTECTED]> wrote:
The only safe way to solve this is to ensure that all your objects are
destroyed before global destruction.
I hear what you say, and I believe I understand it.
However, my attempt fails. In my user script, I added in the end:
$ldap->DESTROY;
print "DBG: end of the script\n";
[I have in the beginning the obvious:
my $ldap = IonaLDAP->new;
]
I assumed this would be run 'before global destruction'.
However, as I run this, I get:
$ ./chkprop-cron
DBG: end of the script
(in cleanup) Can't call method "FETCH" on an undefined value at
/usr/lib/perl5/site_perl/5.8.5/Net/LDAP.pm line 266 during global
destruction.
Is it thus called anyway a second time?
Thanks for your time and attention!
Marc