Folks,

I've written a simple module which calculates the CRC identically to the
cksum UNIX command. This was necessary because the few existing CRC/checksum
functions available at CPAN do not appear to produce the same result as the
cksum program.

The code is taken from a C example, converted to Perl. It processes an
in-memory string, but a really really obvious extension is to make it
process from a File handle too.

So, the module itself is very straightforward; the only tricky bit is
picking a name. Any suggestions? CRC:: is not really a suitable top-level.
Perhaps something inside Algorithm:: will do? eg Algorithm::Cksum

-- 
Apologies for the excessive sig.
Big Boss insists the mail server adds it.
 

--------------------------------------------------------------------- 
This email is from Civica Pty Limited and it, together with any attachments,
is confidential to the intended recipient(s) and the contents may be legally
privileged or contain proprietary and private information. It is intended
solely for the person to whom it is addressed. If you are not an intended
recipient, you may not review, copy or distribute this email. If received in
error, please notify the sender and delete the message from your system
immediately.Any views or opinions expressed in this email and any files
transmitted with it are those of the author only and may not necessarily
reflect the views of Civica and do not create any legally binding rights or
obligations whatsoever. Unless otherwise pre-agreed by exchange of hard copy
documents signed by duly authorised representatives, contracts may not be
concluded on behalf of Civica by email. Please note that neither Civica nor
the sender accepts any responsibility for any viruses and it is your
responsibility to scan the email and the attachments (if any). All email
received and sent by Civica may be monitored to protect the business
interests of Civica. 
--------------------------------------------------------------------- 

Reply via email to