Sample code for 30+ languages & platforms
Perl

Compute CRC32 of a File

Calculates the CRC32 of a file's contents and returns the 32-bit CRC as a hex string.

Chilkat Perl Downloads

Perl
use chilkat();

$zipCrc = chilkat::CkZipCrc->new();
# Use a relative for absolute path to the file..
$crc = $zipCrc->FileCrc("qa_data/hamlet.xml");
$hexStr = $zipCrc->toHex($crc);
print $hexStr . "\r\n";