I believe GrandFather was under the impression that your query_LDAP and query_AD functions would return the results of the queries, instead of printing them to the screen.
If you return $LDAP_name; and return $AD_name; at the end of each function, your comparison should do what you want.
In reply to Re^3: How to compare two subroutine return values, to trigger email
by brap
in thread How to compare two subroutine return values, to trigger email
by anakin30
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |