in reply to warnings pragma anomaly
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.
|
|---|