1CRC32(3)              User Contributed Perl Documentation             CRC32(3)
2
3
4

NAME

6       String::CRC32 - Perl interface for cyclic redundency check generation
7

SYNOPSIS

9           use String::CRC32;
10
11           $crc = crc32("some string");
12           $crc = crc32("some string", initvalue);
13
14           $somestring = "some string";
15           $crc = crc32($somestring);
16
17           open(SOMEFILE, "location/of/some.file");
18           $crc = crc32(*SOMEFILE);
19           close(SOMEFILE);
20

DESCRIPTION

22       The CRC32 module calculates CRC sums of 32 bit lenghts.  It generates
23       the same CRC values as ZMODEM, PKZIP, PICCHECK and many others.
24
25       Despite its name, this module is able to compute the checksum of files
26       as well as strings.
27

EXAMPLES

29           $crc = crc32("some string");
30
31         results in the same as
32
33           $crc = crc32(" string", crc32("some"));
34
35       This is useful for subsequent CRC checking of substrings.
36
37       You may even check files:
38
39           open(SOMEFILE, "location/of/some.file");
40           $crc = crc32(*SOMEFILE);
41           close(SOMEFILE);
42
43       A init value may also been supplied in the above example.
44

AUTHOR

46       Soenke J. Peters <peters__perl@opcenter.de>
47
48       Please be so kind as to report any bugs/suggestions to the above
49       address.
50
52       CRC algorithm code taken from CRC-32 by Craig Bruce.  The module stuff
53       is inspired by a similar perl module called String::CRC by David
54       Sharnoff & Matthew Dillon.  Horst Fickenscher told me that it could be
55       useful to supply an init value to the crc checking function and so I
56       included this possibility.
57
58       The author of this package disclaims all copyrights and releases it
59       into the public domain.
60
61
62
63perl v5.8.8                       2005-04-04                          CRC32(3)
Impressum