in reply to CRC and Serial Port
For example, the following computes the same number as the System V sum program: $checksum = do { local $/; # slurp! unpack("%32C*",<>) % 65535; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Rea: CRC and Serial Port
by baku (Scribe) on Dec 06, 2001 at 02:48 UTC | |
by twerq (Deacon) on Dec 06, 2001 at 21:23 UTC |