in reply to Re^2: Math::BigFloat bnok() question
in thread Math::BigFloat bnok() question
It outputs:use strict; use warnings; use Math::BigFloat; my $n = Math::BigFloat->new(7); my $k = 5; print $n->bnok($k), "\n"; # prints "21". my $n2 = 7; print $n2->bnok($k); # line 10
No problem with the first bnok call, but the second fails because $n2 is not a Math::BigFloat object - and this supports the assertions already made by others in this thread.21 Can't call method "bnok" without a package or object reference at bnok +.pl line 10.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Math::BigFloat bnok() question
by azheid (Sexton) on Aug 28, 2015 at 14:53 UTC |