in reply to Re^2: Big Int to hex with 5.6
in thread Big Int to hex with 5.6

There's an important clue in the error message: you need to use Math::Bigint; (or use bigint;). But if you aren't already doing that, what do you mean by a "bigint number"?

Oh, I see; you perhaps are using the ancient decrepit perl4-ish bigint.pl; you are strongly advised to install a new version of Math::BigInt (which I believe includes a bigint.pm module also) which has scads of bug fixes and use it instead.

You also should be doing print $bignum->as_hex();; just calling it in void context doesn't do anything.

Replies are listed 'Best First'.
Re^4: Big Int to hex with 5.6
by ZlR (Chaplain) on Dec 12, 2004 at 22:05 UTC
    you perhaps are using the ancient decrepit perl4-ish bigint.pl

    I'm using active perl 5.6, and as far as i understand it as_hex is not in the methods offered : BigInt ActiveState

    Sadly upgrading is not an option here. How can do it ? I'm trying to divide by 16 as in a standard conversion but it doesn't work very well ...

        it's not that i don't now how to install the latest bigint , it is that i'm not allowed to .