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

So we got no built-in functions nor a core module for crc-checksome?
That hurts....
(But then, how come SHA-1 and MD5 do have a core module for them?,
they are a lot less popular than crc's for sure:()
  • Comment on Re^2: Calculating the crc checksum of a file using perl?

Replies are listed 'Best First'.
Re^3: Calculating the crc checksum of a file using perl?
by Anonymous Monk on Jul 09, 2011 at 04:25 UTC

    So we got no built-in functions nor a core module for crc-checksome? That hurts.... (But then, how come SHA-1 and MD5 do have a core module for them?, they are a lot less popular than crc's for sure:()

    If you really wish to know, you should ask the perl-5-porters, its their decision :)

    Others who want more stuff with their perl than comes with CORE make their own perl distribution, like Perl::Dist::Strawberry

    I'm curious, why do you think crc is popular? Sure, your harddrive/os/filesystem/browser... use it, but they use md5 and sha1 too

      <q>I'm curious, why do you think crc is popular? Sure, your harddrive/os/filesystem/browser... use it, but they use md5 and sha1 too</q>

      Ah.. it is just cultural. SHA-1 and MD5 are more accurate but they tend to be alot slower and also less known. You can kinda think that SHA-1 and MD5 as Python and Ruby, while crc32 being Perl. You see altought Python and Ruby are getting popularity, Perl is still as twice as popular compare to them.(accoding to an usage statistic by some websites)

        I think that you might be overlooking the fact that there is more than one way to do it in Perl. You haven't found a specific module for doing crc32 because there probably isn't a need for one, considering how fast and popular crc is; instead, you'll find the crc32 functionality spread out among a large group of modules that use the crc32 function in a way that is optimized for each individual module. For example, Compress::Zlib---It's a core dual-lived module that requires just core modules. It can do crc32 as for example:
        #!/usr/bin/perl use strict; use warnings; use Compress::Zlib; my $file = '/usr/lib/somefile.txt'; print my $crc = crc32($file), "\n";