Problems? Is your data what you think it is? | |
PerlMonks |
Re^4: How does Math::GMP overload the assignment operator ? (more guessing)by syphilis (Archbishop) |
on Nov 09, 2020 at 14:36 UTC ( [id://11123526]=note: print w/replies, xml ) | Need Help?? |
That sub will be called whenever an object is used in a context that expects a number. The only way I can find of having that sub called is by doing int($obj). Do you have an example of another way ? On Windows (where sizeof(long) is 4): Math::GMPz achieves the same result with: though, in this very last example, $x is a Math::GMPz object, not an IV. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|