in reply to Re^2: Checksum Help
in thread Checksum Help

If you have saved the script to a file called (let's say) "mycrc.pl", then you should see the following when you run it:
mycrc.pl Usage: mycrc.pl file.name ... mycrc.pl * [list of all files in the current directory, with their crc values..]
The same should happen if you run it like this:
perl mycrc.pl perl mycrc.pl *

Replies are listed 'Best First'.
Re^4: Checksum Help
by TeamViterbi (Novice) on Jul 07, 2009 at 22:31 UTC
    Oh nice, thanks for your help. It works now. =]
Re^4: Checksum Help
by TeamViterbi (Novice) on Jul 07, 2009 at 22:33 UTC
    Oh and one more thing. It spits out two checksums, one is in paranthesis. What does each indicate?
      It spits out two checksums, one is in paranthesis. What does each indicate?

      I was hoping you understood that already, since the output of two different values is based directly on the original code that you posted.

      As I mentioned earlier, I do not understand the need for the second value. The first value is simply the CRC32 checksum computed from a given data file. The second value is the "ones complement" of the first value (as you can see from the code, it is derived by subtracting the first value from 0xffffffff).

      If you don't see any need for that second value, just ignore it (or remove if from the printf statement).