in reply to Unpacking Floating Point on architectures with different endians

perl-5.10.0 will have new pack template modifiers "<" and ">" to force little-endian or big-endian interpretation of any of dDfFiIjJlLpPqQsS. Until then, fiddling with the bits as described by others above is likely to be your only option.

Hugo

  • Comment on Re: Unpacking Floating Point on architectures with different endians
  • Download Code