in reply to Searching Ldap by user id or nisNetgroupTriple
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
|
|---|