in reply to hex to binary

it looks like this is what i'm after.
my $hex = pack 'H*', '641e0100'; print unpack 'I', $hex;print "\n";

Thanks for your help!

Replies are listed 'Best First'.
Re^2: hex to binary
by Anonymous Monk on Feb 17, 2014 at 06:18 UTC
    you're looking for UInt32 because thats 32bit little endian on every platform :) as pack says The integer formats s, S , i , I , l , L , j , and J are inherently non-portable between processors and operating systems because they obey native byteorder and endianness.