in reply to Re: Re: Undefined subroutine
in thread Undefined subroutine
which is incorrect syntax. If you are using indirect object syntax (see perlobj under "Method Invocation"), your code should read:$ldap = new Net::LDAP->('host.edu', port => '389');
But it is better to use:$ldap = new Net::LDAP('host.edu', port => 389) or die "$@";
(As an aside, remember to check your return values!)$ldap = Net::LDAP->new('host.edu', port => 389) or die "$@";
|
|---|