note
LanX
Hi [kcott|Ken]!<P><P>
<I>> As you were probably aware, warnings alert you and strictures disallow it altogether:</I><P><P>
Yes, I became aware after posting the first time.<P><P>
I expected <c>inf</c> and it's brothers² to be constants because of their magic behavior when being numified.<P><P>
Introducing constants¹ for <c>inf</c>, <c>-inf</c> and <c>NaN</c> (even all uppercase like <c>INF</c>) would help clarifying the situation.<P><P>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-708738">
<p>Cheers Rolf
<p> <small>( addicted to the Perl Programming Language) </small>
</div></div><P><P>
¹) like I demonstrated [id://1025195|here]<P><P>
²) every string starting with inf (no matter if upper or lower case) numifies to <c>inf</c>: <P><P>
<c>
DB<106> $a="Infinity"+0
=> "inf"
DB<109> $a="Inftyddssssd"+0
=> "inf"
DB<110> $a="Inf"+0
=> "inf"
DB<111> $a="InF"+0
=> "inf"
</c><P><P>
UPDATE: line 109 with"Inftyddssssd" fails with activated warnings, anything else with <c>lc($else) ~~ ['inf','infinity']</c> won't<P><P>
<c>
DB<123> use warnings; $a='InFiNiTy'+0
=> "inf"
DB<125> use warnings;$a="Inftyddssssd"+0
Argument "Inftyddssssd" isn't numeric in addition (+) at (eval 74)[multi_perl5db.pl:644] line 2.
</c>
1025148
1025232