in reply to Re: Short circuits in Logical AND (&&)
in thread Short circuits in Logical AND (&&)
Oh!! I generally dont like to use the "until" block .. but as you said, this may be a situation that's ideal for its use. If in case I'd want to write this with a while block, would this logic given below work?
while(!(($worker1Finished eq "true")&&($worker2Finished eq "true"))) { print "."; sleep(1); }
Am just trying to learn the different cases for using the "while" and "until" constructs ... So, please give me your suggestions/advice.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Short circuits in Logical AND (&&)
by davido (Cardinal) on Aug 02, 2011 at 06:51 UTC | |
by vishi (Beadle) on Aug 02, 2011 at 08:59 UTC |