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


in reply to Re^2: Math::BigInt new
in thread Math::BigInt new

I also think this is strange. There is no checking for ref($class). I guess something like ...

if ( ref($class) ){ my $t = $wanted; $t =~ s/^[+-]//; return bless { sign => $class->{sign}, value => $CALC->_new($t), }, ref($class); }
should be in new constructor, doesn't it?