in reply to Converting binary to double precision

Reading the unpack documentation, there is no option for "D"
pack
D A float of long-double precision in native format. (Long doubles are available only if your system supports long double values _and_ if Perl has been compiled to support those. Raises an exception otherwise.)

Replies are listed 'Best First'.
Re^2: Converting binary to double precision
by ahoriuch (Acolyte) on Feb 24, 2014 at 18:35 UTC

    Is there a specific version/ install that I need? Invalid type 'D' in unpack at ... line 112, <FILE> chunk 1.

      I'm running on 5.12.2, and I see it. What version of perl do you use?

      UPDATE: I don't see it in 5.8.8. Also, I can't find any mention of a change to pack in either perl5100delta or perl5120delta.

        I'm using 5.8.8. Let me try installing 5.12.2. Thanks.