I find this to be easier to explain:($hour %= 12) ||= 12;
$hour = ($hour + 11) % 12 + 1;
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to Re^2: Basic programming question
by merlyn
in thread Basic programming question
by j.goor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |