in reply to How to use perl digest module to calculate CRC?
Exactly what is your input data? is it the hex number 0x1e5, (485 decimal), or the string "0x1e5" ?
Perl handles these two differently so try running these one liners, and it might make things clearer
perl -E 'my $x=0x1e5; say $x;' # will print 485 perl -E 'my $x="0x1e5"; say $x;' #will print 0x1e5
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to use perl digest module to calculate CRC?
by guyra (Novice) on Mar 21, 2013 at 08:24 UTC |