in reply to pack, unpack and internal represenation of numbers
As an aside, you can find the endianness(?) of the machine from Config.
use Config; if( $Config{ byteorder } eq '1234' ) { print "Little endian"; } elsif ( $Config{ byteorder } eq '4321' ) { print "Big endian"; } else{ print "Your screwed!"; }
|
|---|