in reply to Re: Warning messages about useless constants ignore '0's and '1's
in thread Warning messages about useless constants ignore '0's and '1's
It will never warn about 0 or 1 in void context (including in a "list" specified in scalar context), and also will not warn about any constant on the left side of a short-circuiting op. You seem to have conflated the two cases.