in reply to Re^2: is it a BigInt bug?
in thread is it a BigInt bug?
increment of "2\n" did not change it to a number.
Why do you say that?
13:45 >perl -Mbigint -wE "my ($m, $k) = split / /, qq[10 2\n]; say qq[ +>$k<]; ++$k; say qq[>>$k<<];" >2 < >>3<< 13:49 >
Update (31 Aug 14): Fixed typo: changed ++k to ++$k.
Auto-increment has here converted $k from a string to a number, as can be seen from the loss of the trailing newline. The same effect is produced by $k++ or $k += 1.
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: is it a BigInt bug?
by rsFalse (Chaplain) on Aug 30, 2014 at 22:17 UTC | |
by Athanasius (Archbishop) on Aug 31, 2014 at 03:49 UTC |