![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Byte-order and packing numbers into stringsby larryk (Friar) |
on Jan 24, 2002 at 21:53 UTC ( #141258=perlquestion: print w/replies, xml ) | Need Help?? |
larryk has asked for the
wisdom of the Perl Monks concerning the following question:
The Situation 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) The Question The Code
Any help much appreciated, larryk perl -le "s,,reverse killer,e,y,rifle,lycra,,print"
Back to
Seekers of Perl Wisdom
|
|