in reply to Short circuits in Logical AND (&&)
If your true and false flags equate to one and zero, you can write your loop like this:
until ($worker1Finished & $worker2Finished) { ... }
Update: s/zero and one/one and zero/
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Short circuits in Logical AND (&&)
by GrandFather (Saint) on Aug 04, 2011 at 02:04 UTC | |
|
Re^2: Short circuits in Logical AND (&&)
by locked_user sundialsvc4 (Abbot) on Aug 02, 2011 at 11:17 UTC | |
by JavaFan (Canon) on Aug 02, 2011 at 14:57 UTC |