$x ||= 0;
Any ideas on how or why something like Or, Or, Equals Zero would be used?$x = -1; $x ||= 0; print $x; -1 $x = 0; $x ||= 0; print $x; 0 $x = 2; $x ||= 0; print $x; 2 $x = 3; $x ||= 0; print $x; 3 $x = 123132; $x ||= 0; print $x; 123132
In reply to Or, Or, Equals Zero, $x ||= 0 by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |