note
xdg
<p>It's worth mentioning this tidbit I picked up from HOP: <code>'0 but true'</code> is a special-case that will not issue a warning when used in a numeric context.
</p>
<code>
$ perl -we 'print "0 but true" + 2'
2
$ perl -we 'print "0 but actually true" + 2'
Argument "0 but actually true" isn't numeric in addition (+) at -e line 1.
2
</code>
<div class="pmsig"><div class="pmsig-268515">
<p>-xdg</p>
<p><small><i>Code written by xdg and posted on PerlMonks is <a href="http://creativecommons.org/licenses/publicdomain">public domain</a>. It is provided <b>as is</b> with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.</i></small></p>
</div></div>
495975
495975