Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Undefined subroutine

by BlueLines (Hermit)
on Mar 13, 2001 at 00:43 UTC ( [id://63949]=note: print w/replies, xml ) Need Help??


in reply to Undefined subroutine

AgentM is correct. You are calling Net::LDAP, which is a subroutine named LDAP in the Net module.

You want the following:
my $ldap = new Net::LDAP();


BlueLines

Disclaimer: This post may contain inaccurate information, be habit forming, cause atomic warfare between peaceful countries, speed up male pattern baldness, interfere with your cable reception, exile you from certain third world countries, ruin your marriage, and generally spoil your day. No batteries included, no strings attached, your mileage may vary.

Replies are listed 'Best First'.
Re: Re: Undefined subroutine
by hhh (Initiate) on Mar 13, 2001 at 01:03 UTC

    when I added new at line 5, another error message pop up (see below). Do you have similar examples? Thanks.

    Undefined subroutine &main:: called at ./ldap.pl line 5

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://63949]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 22:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found