There's more than one way to do things | |
PerlMonks |
Re^6: Multi-stage flip-flop?by RonW (Parson) |
on Dec 11, 2014 at 20:00 UTC ( [id://1110096]=note: print w/replies, xml ) | Need Help?? |
With .. the first condition is only evaluated when .. is in the "inactive" state. The second condition is only evaluated when .. is in the "active" state. And that is the behavior I am (implicitly) proposing - that only the condition corresponding to the current state be evaluated. So, an initial draft of till might be:
Note: The above actually behaves like ... in that only 1 condition is evaluated per invocation. Disclaimer: Not yet tested.
In Section
Meditations
|
|