CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
Signed Long Hash


New User

Jun 15, 2017, 8:44 AM

Post #1 of 2 (3792 views)
Signed Long Hash Can't Post

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

Post #2 of 2 (3788 views)
Re: [breezykatt] Signed Long Hash [In reply to] Can't Post

Cross posted on the Perl Monks forum:

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.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives