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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Signed Long Hash

 



breezykatt
New User

Jun 15, 2017, 8:44 AM

Post #1 of 2 (1459 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.


Laurent_R
Veteran / Moderator

Jun 15, 2017, 9:23 AM

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

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.

 
 


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

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