in reply to Simple Digests?
Page 237 of my copy of Programming Perl (2d edition) has this:
which is claimed to produce "the same number as the System V sum program".undef $/; # That's what's in the book; local $/ may be better. $checksum = unpack("%32C*",<>) %32767;
This may be supercheap; it's certainly pretty short.
emc
" The most likely way for the world to be destroyed, most experts agree, is by accident. That's where we come in; we're computer professionals. We cause accidents."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Simple Digests?
by wazoox (Prior) on Mar 29, 2006 at 15:59 UTC | |
by swampyankee (Parson) on Mar 29, 2006 at 20:55 UTC |