crc32.pl 199 B

1234567891011
  1. use strict;
  2. use warnings;
  3. use Digest::CRC;
  4. my $ctx = Digest::CRC->new( type => 'crc32' );
  5. open my $fh, '<:raw', $ARGV[0] or die $!;
  6. $ctx->addfile(*$fh);
  7. close $fh;
  8. print uc $ctx->hexdigest, "\n";