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."In reply to Re: Simple Digests?
by swampyankee
in thread Simple Digests?
by pileofrogs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |