Will Spencer <will.spencer (AT) internet-search-engines-faq (DOT) com> typed:
Quote:
On Wed, 07 Jul 2004 09:34:45 +0200, Jan Harders wrote:
Yeah, pretty cool info, thanks alot.
I have been working on a perl-version of the code, but ran into
problems. Will publish the resulting code here once I got it ready.
When you do, send me an e-mail and I'll link you from here: http://www.internet-search-engines-f...age-rank.shtml |
I am still working on it, but still didn't solve all the problems. If anyone
here wants to help, I'd be very happy.
Problem is that perl treats big integers in another way then php does when
using bitwise operations. It's, that's what I got so far, that perl does not
overflow the 32bit-buffer, but fills it and then shifts with a full
32bit-integer. Discussion of the behaviour (in german):
<
http://board.perl-community.de/cgi-b...i?act=ST;f=14;
st=0;t=280;#idx15>.
Now, I got the idea to simply rewrite bitwise-operations into functions that
manipulate the integers before operating on them to reach compatibilty to
php (and bash and probably lots of other languages). Gotta admit here, I did
never really get cosy with bitshifting and all that basic stuff :/
anyway: my code-try is available at
http://www.delinquent.de/ch.txt - please
drop me a line if you have any ideas!
Greets,
Jan