Home: Perl Programming Help: Intermediate:
Signed Long Hash

New User

Jun 15, 2017, 8:44 AM

Views: 6623
Signed Long Hash

I'm trying to convert a string value into a signed long hash value. By doing so, I first convert the string "abcd" to fnv64a hash value which is "18165163011005162717", using the use Digest::FNV::PurePerl module. Thereafter, I am trying to convert this to a signed long by using the Math::BigInt module and the numify method. However, this doesn't appear to be working. I am looking for the long signed value of "-281581062704388899". Is this possible? Thanks.

Veteran / Moderator

Jun 15, 2017, 9:23 AM

Views: 6619
Re: [breezykatt] Signed Long Hash

Cross posted on the Perl Monks forum: http://www.perlmonks.org/?node_id=1192867

There is nothing wrong with cross posting questions, but it is advised to inform the reader in order to avoid duplication of work in various parts of the Internet.