in reply to Re^2: How to compare two subroutine return values, to trigger email
in thread How to compare two subroutine return values, to trigger email
Hi anakin30,
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 Section
Seekers of Perl Wisdom