Skip Menu |
 

This queue is for tickets about the Math-BigRat CPAN distribution.

Report information
The Basics
Id: 122018
Status: open
Priority: 0/
Queue: Math-BigRat

People
Owner: Nobody in particular
Requestors: gdg [...] zplane.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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>
Download (untitled) / with headers
text/plain 647b
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'); ----------------------------------------------------
Download (untitled) / with headers
text/plain 1.3k
Glenn, thank you for your report. Could you supply more information about your setup, namely the output of these commands: perl -V perl -MMath::BigInt -le "print Math::BigInt->VERSION" Note that there are incompatible combinations of versions of Math::BigInt and Math::BigRat. You might have hit one of these by updating Math::BigInt from CPAN while keeping Math::BigRat from your perl core distribution. Note also that there is an important patch for Math::BigRat versions from 0.260805 through 0.2612 (the latest published one) in rt-121139, cf. https://rt.cpan.org/Ticket/Display.html?id=121139 -Martin On Mon Jun 05 22:57:17 2017, gdg@zplane.com wrote: Show quoted text
> 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. > > > ---------- 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'); > ----------------------------------------------------
Subject: Re: [rt.cpan.org #122018] Man page synopsis example for setting infinity fails
Date: Thu, 8 Jun 2017 06:14:57 -0600
To: Martin Becker via RT <bug-Math-BigRat [...] rt.cpan.org>
From: Glenn Golden <gdg [...] zplane.com>
Download (untitled) / with headers
text/plain 868b
Martin Becker via RT <bug-Math-BigRat@rt.cpan.org> [2017-06-08 03:43:57 -0400]: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=122018 > > > thank you for your report. Could you supply more information about > your setup, namely the output of these commands: > > perl -V > perl -MMath::BigInt -le "print Math::BigInt->VERSION" > > Note that there are incompatible combinations of versions of > Math::BigInt and Math::BigRat. You might have hit one of these > by updating Math::BigInt from CPAN while keeping Math::BigRat > from your perl core distribution. >
That's exactly what the problem was, thank you. I had forgotten that I'd even had BigInt installed in my local library. My mistake for not running it with the debugger to see where it was coming from. I udpated both my local BigRat and BigInt, and now the 'inf' init is fine. Sorry for the noise.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.