Subject: | Man page synopsis example for setting infinity fails |
Date: | Mon, 5 Jun 2017 20:57:05 -0600 |
To: | bug-Math-BigRat [...] rt.cpan.org |
From: | Glenn Golden <gdg [...] zplane.com> |
This bug report pertains to BigRat version 0.260802 running under perl 5.24.1:
The man page SYNOPSIS gives this usage example for creating a BigRat infinity:
my $y = Math::BigRat->new('inf');
On my setup, the above fails with:
"Use of uninitialized value $x in concatenation (.) or string
at /xxxx/xxxx/locperl/lib/perl5/Math/BigInt/Calc.pm line 1240."
Example inline below.
Show quoted text
---------- begin inline example --------------------
#!/usr/bin/perl
use strict;
use warnings;
use Math::BigRat;
print "BigRat version $Math::BigRat::VERSION\n";
my $y = Math::BigRat->new('inf');
----------------------------------------------------