Constants 0 & 1 are special cased exclusions from the "void context" warning because they are so useful.
Eg. 1 while s[...][...]g;; does search and replace until no more matches are found.
There are many other examples of the utility of having 0, 1 & undef in a void context fail to warn. I seem to recall a thread that listed them; though a cursory search failed to locate same.
In reply to Re: warnings pragma anomaly
by BrowserUk
in thread warnings pragma anomaly
by Athanasius
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |