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!"; }

Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon