A scalar constant in a void context will result in a warning, unless this constant evaluates to a numeric value of 1...
Actually, the same is true of zero:
% perl -wce 0 -e syntax OK
Given dave_the_m's explanation above, is this to allow:
0 until ....??
In reply to Re: Why no warnings for 1 in void context?
by Not_a_Number
in thread Why no warnings for 1 in void context?
by tlm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |