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

But, since calculating crc-checksome is a so common task now-a-days, I wonder that there may be a more default way -- means no extra installation -- of doing it with perl.

Yes, its called reinventing the wheel.

Yes, even you can use CPAN

Is there any easier way to get crc-checksome other than using the Digest module?

No. Somebody else already did all the work, how can it get easier?

  • Comment on Re: Calculating the crc checksum of a file using perl?

Replies are listed 'Best First'.
Re^2: Calculating the crc checksum of a file using perl?
by AGhoulDoingPerl (Sexton) on Jul 09, 2011 at 03:56 UTC
    Yes, its called reinventing the wheel.

    I think you misunderstood my question. I'm asking whether there is a crc checking functionality built-in into the perl core, or core modules.

    No. Somebody else already did all the work, how can it get easier?

    You call them "built-in funtions" and "core modules" .

    Come on, man. I thought there could be a built in fuction or a core module that can deal with crc-stuff since it is so common task now a day. You don't need to give me a lecture on how to use cpan nor on why reinventing will sucks:)

      Usually when there's a well-tested module on CPAN that I would like to use, and upon attempting to install it I find dependencies that I wasn't expecting (C headers, xml libraries, etc.), my next step is to dig into figuring out how to get those dependencies installed too. I figure that if a couple thousand other people (or more) find it useful, and have figured out how to get it installed and operating properly, it's probably not beyond me either, at least with a little help and advice from friends here from time to time. That's not to say there haven't been times where I just say, "This is not worth it because there are other solutions that are less demanding." But that is usually when another solution is evident.

      I've seen a great deal of patience here from other Monks when the question is, "I'm having difficulty installing this, here's what I've tried, and here's where I am." And I see a great deal of impatience around here with, "I can't install it because it requires xyz." That's like saying, "I can't install a faucet in my bathroom sink because I don't have a wrench. ...ok, so let's figure out how to get a wrench here. ;) Sometimes the response is, "Well, I don't want a wrench. I just want a faucet." Then the grumbling begins.


      Dave

      Come on, man. I thought there could be a built in fuction or a core module that can deal with crc-stuff since it is so common task now a day.

      There are many common tasks, not everything is in core....

      CRC site:perldoc.perl.orghttp://perldoc.perl.org/Compress/Zlib.html

      You don't need to give me a lecture on how to use cpan nor on why reinventing will sucks:)

      Well :D two sentences don't make a lecture, though it does appear you need it :)