in reply to Calculating the crc checksum of a file using perl?

I don't know if this suffices, but there is some less obvious extremely core way using unpack:

my $sum = unpack "%64A*", $string;

See $ perldoc packtut for more details. (under the head "Doing sums)


Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^2: Calculating the crc checksum of a file using perl?
by Anonymous Monk on Jul 09, 2011 at 15:13 UTC
Re^2: Calculating the crc checksum of a file using perl?
by Anonymous Monk on Jul 09, 2011 at 16:22 UTC
    As far as I know, what unpack does with "%" flag is just suming up the values and then modulate. CRC algorithm uses polynomial division and bitwise shifting instead of just summing things up, so I think they are quite different.