Subject: | Error in synopsis: Crypt::OpenSSL::Bignum->new_from_hex("0x3e8") returns "0" |
The example from the synopsis is not working:
% perl -MCrypt::OpenSSL::Bignum -e 'print
Crypt::OpenSSL::Bignum->new_from_hex("0x3e8")->to_hex()'
prints '0'. You have to delete the '0x' and then it's working.
% perl -MCrypt::OpenSSL::Bignum -e 'print
Crypt::OpenSSL::Bignum->new_from_hex("3e8")->to_hex()'
prints '03E8' as expected.