I can then combine the results from multiple calls to the aforementioned sub to create a more complex boolean expression such as (T && F) || (F && F) etc.
If your sub is called foo() then it's simply
my $bool = (foo() && !foo()) || (!foo() && !foo());
In reply to Re: Evaluate arbitrary boolean expressions
by hippo
in thread Evaluate arbitrary boolean expressions
by gauss76
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |