|go ahead... be a heretic|
Byte-order and packing numbers into stringsby larryk (Friar)
|on Jan 24, 2002 at 21:53 UTC||Need Help??|
larryk has asked for the
wisdom of the Perl Monks concerning the following question:
I need to format an integer into an 8-byte hexadecimal string as follows: if hex representation is (st uv wx yz) the formatted string must be (yz wx uv st st uv wx yz).
e.g. 305419896 in hex is (12345678) so formatted string should be (78 56 34 12 12 34 56 78)
Any help much appreciated,
larryk perl -le "s,,reverse killer,e,y,rifle,lycra,,print"