Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Action at a distance

by hv (Prior)
on Nov 03, 2022 at 12:07 UTC ( [id://11147934]=note: print w/replies, xml ) Need Help??

in reply to Action at a distance

This is deliberate behaviour of Math::BigInt: they are objects, and $x = $y just copies the reference. See the section on "Modifying and =" under CAVEATS. You will see also that binc() is documented in a section Arithmetic methods which is headed "These methods modify the invocand object and returns it" (sic).

Generally the module is designed such that if you treat the objects as numbers it will attempt to do what is needed to preserve that illusion; if you treat them as objects, by calling methods on them, you need to read rather more of the docs.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11147934]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-23 01:00 GMT
Find Nodes?
    Voting Booth?

    No recent polls found