Resulted in Can't call method "can" on unblessed reference, so I
changed the code:
use Scalar::Util qw(blessed);
die ref($x).":".blessed($x).", ".ref($y).":".blessed($y) unless
((ref($x) ? blessed($x) : 1)||(ref($y) ? blessed($y) : 1));
On Mon, Apr 20, 2015 at 6:22 PM, Bugs in Math-BigInt via RT
<bug-Math-BigInt@rt.cpan.org> wrote:
Show quoted text>
> Greetings,
>
> This message has been automatically generated in response to the
> creation of a trouble ticket regarding:
> "is_zero on unblessed reference line 506.",
> a summary of which appears below.
>
> There is no need to reply to this message right now. Your ticket has been
> assigned an ID of [rt.cpan.org #103844]. Your ticket is accessible
> on the web at:
>
>
https://rt.cpan.org/Ticket/Display.html?id=103844
>
> Please include the string:
>
> [rt.cpan.org #103844]
>
> in the subject line of all future correspondence about this issue. To do so,
> you may reply to this message.
>
> Thank you,
> bug-Math-BigInt@rt.cpan.org
>
> -------------------------------------------------------------------------
> Looks like bcmp in VERSION 1.9991 does not handle scalars.
>
> Can't call method "is_zero" on unblessed reference at
> /usr/share/perl/5.20/Math/BigFloat.pm line 506.
>
> I've added the following to capture more information.
> die ref($x).":".ref($y) unless ($x->can('is_zero') && $y->can('is_zero'));