Re: sub never called

2006-05-23 Thread Anthony Ettinger
turn warnings on /usr/bin/perl -w use strict; use diagnostics; On 5/22/06, beast <[EMAIL PROTECTED]> wrote: I have these following code. It seems that sub is_exist never called more than once. I've checked ldap server log, the client never request for second search. Putting $ldap object i

sub never called

2006-05-23 Thread beast
I have these following code. It seems that sub is_exist never called more than once. I've checked ldap server log, the client never request for second search. Putting $ldap object inside every sub will solve the problem, but doesn't it expensive to create ldap connection object for every search?