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

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";

Replies are listed 'Best First'.
Re^6: Calculating the crc checksum of a file using perl?
by AGhoulDoingPerl (Sexton) on Jul 09, 2011 at 14:07 UTC

    Yes! This is the exact answer that I was looking for when I made the question. Thanks to you, Khen1950fx

    After finding out that the Digest module can't do crc32 without an extra installation from the CPAN, I thought there is a very strong chance that there is another core module that can do it, since crc is so popular and such a common thing to do.

    So, I questioned here to find out what the module that is, and I was just keep being admised to use CPAN for this until Khen1950fx come and enlighten me that Compress::Zlip can actually do it!

    Just as you see from how this thread went, Some people are way too fanatic about CPAN usage. Sure, CPAN has its own goodness, and re-inventing wheel sucks... But what's the point of borrowing a wheel from CPAN if there is already a perfect wheel siting at your core house, like the one mentioned above here? CPAN is just one of the ways, and not the only way. Hope some people understand this....

      Just as you see from how this thread went, Some people are way too fanatic about CPAN usage. Sure, CPAN has its own goodness, and re-inventing wheel sucks...

      You should lookup fanatic in the dictionary.

      You should follow up when you get an answer Re^3: Calculating the crc checksum of a file using perl?

      But what's the point of borrowing a wheel from CPAN if there is already a perfect wheel siting at your core house, like the one mentioned above here?

      Well, if you can't find the wheel in your core house yourself (grep -ri crc32 ....lib... ), get the one you can find, even if its on CPAN or made of hotdogs

        <q>You should lookup fanatic in the dictionary.</q>

        I am perfectly fine with my usage of the word "fanatic" here:)

        <q>Well, if you can't find the wheel in your core house yourself (grep -ri crc32 ....lib... ), get the one you can find, even if its on CPAN or made of hotdogs</q>

        Still, I would ask around first, so that I am certain that there is indeed no wheel at my core house. Resorting to CPAN or whatever is just a next part, NEVER the first. Peace:)