http://www.perlmonks.org?node_id=1025195


in reply to Re: Incrementing "Infinity" bug (numification, perlnumber, magic increment decrement)
in thread Incrementing "Infinity" bug

It's a bug or at least a design flow.

Creating a constant which returns a numified inf easily fixes this problem

DB<100> use constant inf => inf+0 => 0 DB<101> $a=inf => "inf" DB<102> ++$a => "inf" DB<103> ++$a => "inf"

So why doesn't Perl do this per default?

do we really need to use hacks like 1e9999 to create inf?

Cheers Rolf

( addicted to the Perl Programming Language)