Re: Perl and integer overflows

2010-06-20 Thread Shachar Shemesh
Shlomi Fish wrote: You can compile Perl with 64-bit integers, even on 32-bit platforms. That or use a big-integer module such as Math::BigInt : http://perldoc.perl.org/Math/BigInt.html Thanks. I'll give it a try. Shachar See its lib => 'GMP' option if you want much better speed. Regards

Re: Perl and integer overflows

2010-06-20 Thread Shlomi Fish
On Sunday 20 Jun 2010 13:25:00 Shachar Shemesh wrote: > Hi all, > > I'm trying to calculate the result of a string hash function in perl. I > need an explicit function, as the perl output is used to create a C > program, that will then use that very same hash function. Please, do not > direct me t

Re: Perl and integer overflows

2010-06-20 Thread Dotan Shavit
On Sunday 20 June 2010 13:25:00 Shachar Shemesh wrote: > Hi all, > > I'm trying to calculate the result of a string hash function in perl. I > need an explicit function, as the perl output is used to create a C > program, that will then use that very same hash function. Please, do not > direct me

Perl and integer overflows

2010-06-20 Thread Shachar Shemesh
Hi all, I'm trying to calculate the result of a string hash function in perl. I need an explicit function, as the perl output is used to create a C program, that will then use that very same hash function. Please, do not direct me to perl's excellent hash handling. I know it's there. I use it