in reply to Re^8: sprintf %X endianness
in thread sprintf %X endianness

seems to answer that sprintf %x will return the same string on all machines

Yes.