On 09/10/13 14:59, David Christensen wrote:
Assuming canonical boolean values, post-invert semantics (save the new
value into another variable) ...
Pre-invert semantics (save the old value into another variable) ...

Oops -- it looks like I got my pre- and post- backwards...


And, dropping the save old idiom:

        ($var = $old = $var) ^= 1

into the middle of expression would yield the new value, which would be wrong...


David

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to