in reply to Re^4: How to use perl digest module to calculate CRC?
in thread How to use perl digest module to calculate CRC?
However, it seems that there is a problem with this approach. Not all HEX values have a "valid" ascii value that can be sent to the digest::crc. For example: if HEX=01 --> ASCII=SOH, which is not really a char that can be sent. That means that many HEX vals can't be in the game... Am I correct about that?
No. SOH is just a byte with the numeric value 1, and it is a perfectly valid ASCII character. pack will pack it just fine.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: How to use perl digest module to calculate CRC?
by guyra (Novice) on Apr 02, 2013 at 11:17 UTC |