G'day Sabiha,

"The code is: ... It does not give any output."

Saving a verbatim copy of the code you posted as 'pm_1075535.pl', I get lots of output:

$ pm_1075535.pl Global symbol "$ldap" requires explicit package name at ./pm_1075535.p +l line 6, <DATA> line 522. Global symbol "$ldap" requires explicit package name at ./pm_1075535.p +l line 7, <DATA> line 522. Global symbol "$mesg" requires explicit package name at ./pm_1075535.p +l line 8, <DATA> line 522. Global symbol "$ldap" requires explicit package name at ./pm_1075535.p +l line 8, <DATA> line 522. Global symbol "@entries" requires explicit package name at ./pm_107553 +5.pl line 9, <DATA> line 522. Global symbol "$mesg" requires explicit package name at ./pm_1075535.p +l line 9, <DATA> line 522. Global symbol "$entry" requires explicit package name at ./pm_1075535. +pl line 11, <DATA> line 522. Global symbol "@entries" requires explicit package name at ./pm_107553 +5.pl line 11, <DATA> line 522. Global symbol "$entry" requires explicit package name at ./pm_1075535. +pl line 13, <DATA> line 522. Execution of ./pm_1075535.pl aborted due to compilation errors. $

If you're only looking at stdout output, the reason that you don't see any output is because your code doesn't compile and, therefore, is not run:

$ pm_1075535.pl 2> /dev/null $

Assuming you're not actually throwing away stderr output, please post code that compiles and all output it produces.

We cannot help you with your code if you do not post the actual code you're running!

-- Ken


In reply to Re: Searching Ldap by user id or nisNetgroupTriple by kcott
in thread Searching Ldap by user id or nisNetgroupTriple by Sabiha

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.