Update: black on black is a good one. So here comes:
| An assignment returns the variable being assigned to as an lvalue, which the following && evaluates to its value. Therefor, ($something += $amt) will return 0 if that is $something's new value, causing the following && to fall through and miss the last. As a result, at least one too many variables get updated within the same switch statement - potentially even all of them. |
Makeshifts last the longest.
In reply to Re: Pop quiz: find the bug
by Aristotle
in thread Pop quiz: find the bug
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |