in reply to Re^3: 32bit float from two halves
in thread 32bit float from two halves

Aha, ok. Is there then an endianness change implied in the arguments to pack? The two parts of the value are coming from some sort of industrial control unit; we don't have any info on what the internal architecture of the unit is so we're trying to document exactly what needed to be done to the data to get it readable via perl on linux/Intel. Thanks again for the insight, this is really helping...

Replies are listed 'Best First'.
Re^5: 32bit float from two halves
by FreeBeerReekingMonk (Deacon) on Aug 11, 2016 at 12:15 UTC
    Exactly, see perlpacktut#Byte-order-modifiers

    unpack() can unpack little and/or big endian in one go. In that page, read also the part titled "Dealing with Endian-ness".