I went to the CPAN site but couldn't retrieve much about this module

I'm not sure what you mean. I gave you a link to the full documentation for the module. If what you want isn't there, then perhaps you should report a documentation bug :-)

If I comment out this line "use Mozilla::LDAP::API qw(:constant :api :ssl);" then the error that it gives is : Undefined subroutine &main::ldap_init

That's not really a surprise when you think about it. If you comment out the module which supplies a subroutine then Perl won't be able to find the subroutine.

If you find that confusing then I recommend that you step back from this project and try reading some good books.

You haven't taken the effort to format your code in a readable manner - therefore I'm not going to make the effort to read it.

Also, you've completely ignored the requests to tell us what messages are being written to the web server error log. If you want our help, then you should answer the questions that we ask.

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg


In reply to Re^3: Perl CGI script error by davorg
in thread Perl CGI script error by mikan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.