my $ctx = Digest::CRC->new(width=>16, init=>0, xorout=>0xffff, refin=>1, refout=>1, poly=>0x3d65, cont=>0xea82); $ctx->add(0x05); $ctx->add(0x64); $ctx->add(0x05); $ctx->add(0xF2); $ctx->add(0x01); $ctx->add(0x00); $ctx->add(0x00); $ctx->add(0x00); my $x=$ctx->digest; printf("x=%04x\n",$x);