David Muir Sharnoff > String-CRC-1.0 > CRC

Download:
modules/String-CRC-1.0.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

CRC - Perl interface cyclic redundency check generation

SYNOPSIS ^

    use String::CRC;
    
    ($crc_low, $crc_high) = crc("some string", 64);
    $crc_binary = crc("some string", 64);
    ($crc_low, $crc_high) = unpack("LL", $crc_binary);
    ($crc_small) = crc("some string", 32);

DESCRIPTION ^

The CRC module calculates CRC of various lenghts. The default CRC length is 32 bits.

CRCs of 32 bits and smaller will be returned as an integer.

CRCs that are larger than 32 bits will be returned as two integers if called in list context and as a packed binary string if called in scalar context.

COPYRIGHT ^

Taken from Matt Dillon's Diablo distribution with permission.

The authors of this package (David Sharnoff & Matthew Dillon) disclaim all copyrights and release it into the public domain.

syntax highlighting: