taintme has asked for the wisdom of the Perl Monks concerning the following question:
Am I SOL on this?#before loop $cntdiff = new Math::BigInt '0'; $predefbi = new Math::BigInt '0'; # inside read loop # for example $firststr = "ffffccbbaa0"; $laststr = "ffffccbbaa9"; # Make sure it is clear that its hex... $firststr = "0x".$firststr; $laststr = "0x".$laststr; $strtcnt = new Math::BigInt $firststr; $endcnt = new Math::BigInt $laststr; $cntdiff = $endcnt - $strtcnt; # the above works OK but if I try something like $predefbi = $firststr; # it doesn't seem to work
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Changing the value of a BigInt?
by ysth (Canon) on May 13, 2004 at 03:49 UTC | |
by hossman (Prior) on May 13, 2004 at 04:33 UTC | |
|
Re: Changing the value of a BigInt?
by bart (Canon) on May 13, 2004 at 10:04 UTC | |
|
Re: Changing the value of a BigInt?
by thor (Priest) on May 13, 2004 at 03:46 UTC | |
|
Re: Changing the value of a BigInt?
by taintme (Acolyte) on May 13, 2004 at 05:20 UTC | |
by ysth (Canon) on May 13, 2004 at 05:46 UTC |