home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
zkuste
/
Perl
/
ActivePerl-5.6.0.613.msi
/
䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥
/
_61df7ba141c6364ad7ee0308e84aa6c4
< prev
next >
Wrap
Text File
|
2000-03-23
|
2KB
|
76 lines
<HTML>
<HEAD>
<TITLE>CRC - Perl interface cyclic redundency check generation</TITLE>
<LINK REL="stylesheet" HREF="../../../Active.css" TYPE="text/css">
<LINK REV="made" HREF="mailto:">
</HEAD>
<BODY>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> CRC - Perl interface cyclic redundency check generation</P></STRONG>
</TD></TR>
</TABLE>
<A NAME="__index__"></A>
<!-- INDEX BEGIN -->
<UL>
<LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
<LI><A HREF="#synopsis">SYNOPSIS</A></LI>
<LI><A HREF="#description">DESCRIPTION</A></LI>
<LI><A HREF="#copyright">COPYRIGHT</A></LI>
</UL>
<!-- INDEX END -->
<HR>
<P>
<H1><A NAME="name">NAME</A></H1>
<P>CRC - Perl interface cyclic redundency check generation</P>
<P>
<HR>
<H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
<UL>
<LI>Linux</LI>
<LI>Solaris</LI>
<LI>Windows</LI>
</UL>
<HR>
<H1><A NAME="synopsis">SYNOPSIS</A></H1>
<PRE>
use String::CRC;
</PRE>
<PRE>
($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);</PRE>
<P>
<HR>
<H1><A NAME="description">DESCRIPTION</A></H1>
<P>The <STRONG>CRC</STRONG> module calculates CRC of various lenghts. The default
CRC length is 32 bits.</P>
<P>CRCs of 32 bits and smaller will be returned as an integer.</P>
<P>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.</P>
<P>
<HR>
<H1><A NAME="copyright">COPYRIGHT</A></H1>
<P>Taken from Matt Dillon's Diablo distribution with permission.</P>
<P>The authors of this package (David Sharnoff & Matthew Dillon) disclaim
all copyrights and release it into the public domain.</P>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> CRC - Perl interface cyclic redundency check generation</P></STRONG>
</TD></TR>
</TABLE>
</BODY>
</HTML>