morphyno has asked for the wisdom of the Perl Monks concerning the following question:
The checksum of 1342309121 is 7a9735d9 It seems like Digest::CRC is doing ASCII CRC32. I tried setting:my $one = "50020301"; $crc = Digest::CRC->new( type => "crc32" ) ; $crc->add($one); my $out=$crc->hexdigest(); print "The checksum of $one is $out \n";
But then Digest::CRC interprets that as Dec and converts that to HEX, before continuing ASCII CRC32. Can someone give me some suggestions on how to do HEX CRC32?$one = 0x50020301;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Digest::CRC hexdigest not working?
by BrowserUk (Patriarch) on Dec 20, 2012 at 23:23 UTC | |
|
Re: Digest::CRC hexdigest not working?
by morphyno (Initiate) on Dec 21, 2012 at 01:06 UTC |