|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re^2: Boolean counter?by doug (Pilgrim) |
| on Dec 07, 2009 at 18:22 UTC ( #811589=note: print w/ replies, xml ) | Need Help?? |
|
I agree that the XOR solution is perfectly correct, but why use that instead of NOT? Isn't $counter = ! $counter;easier to read? That said, I have to admit that I like the snazzyness of the in place ^= syntax. It is hard to get more concise than that. - doug
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||