in reply to Bit order
If this doesn't work could you give an example of four bytes that you read and the integer that you expect.#!/usr/bin/perl -l use strict; my $dword = pack "N", 0x01020304; print unpack "V", pack "b8b8b8b8", unpack "B8B8B8B8", $dword; print unpack "N", pack "b8b8b8b8", unpack "B8B8B8B8", $dword;
--
John.
|
|---|