2 # computes and prints to stdout the CRC-32 values of the given files
3 use lib
qw( blib/lib lib );
7 my $totalFiles = scalar(@ARGV);
8 foreach my $file (@ARGV)
12 warn "$0: ${file}: Is a directory\n";
15 my $fh = FileHandle
->new();
16 if (! $fh->open($file, 'r'))
25 while ($bytesRead = $fh->read($buffer, 32768))
27 $crc = Archive
::Zip
::computeCRC32
($buffer, $crc);
30 print("\t$file") if ($totalFiles > 1);