Assuming the empty string isn't a valid id, that will convert undef to zero.
Whether it makes sense or not can only be derived from context, but it seems to me that you might be silencing the symptom, not fixing the problem. Why is id undef in the first place? Why would it makes sense to set it to zero when it is?
In reply to Re^3: What is the difference between |= and ||=?
by ikegami
in thread What is the difference between |= and ||=?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |