however, for the cost of one extra & character (I can supply them very cheaply if you are running out) you can write:
until ($worker1Finished && $worker2Finished) { ... }
which will work nicely for all Perl's various true and false values (including not complaining about undef values under strictures).
In reply to Re^2: Short circuits in Logical AND (&&)
by GrandFather
in thread Short circuits in Logical AND (&&)
by vishi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |