in reply to Calculating the crc checksum of a file using perl?
In an emergency, a band-aid like the following may suffice but be aware this has many problems: non-portable, no error checking, assumptions about checksum program and target file, and so on. As already stated, the work's been done so the easiest solution is to use what's offered on CPAN.
$ perl -E 'say +(split q{ } => qx{cksum compmesg.txt})[0];' 2782145713
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Calculating the crc checksum of a file using perl?
by AGhoulDoingPerl (Sexton) on Jul 09, 2011 at 04:10 UTC | |
by Anonymous Monk on Jul 09, 2011 at 04:25 UTC | |
by AGhoulDoingPerl (Sexton) on Jul 09, 2011 at 05:03 UTC | |
by Khen1950fx (Canon) on Jul 09, 2011 at 06:04 UTC | |
by AGhoulDoingPerl (Sexton) on Jul 09, 2011 at 14:07 UTC | |
|