isinf#

Whether a value is infinity.

Synopsis#

use Scalar::Util::Numeric qw(isinf);
isinf("Inf");     # 1
isinf(9**9**9);   # 1

What you get back#

1 for positive or negative infinity, in any spelling perl reads as infinity, else 0.