in reply to Storable( Double size not compatible in Storable) compatible)

Looked at the XS code in Storable module, found that it fails because sizeof(double) is compared with sizeof(long double)

This sounds like a compilation or configuration error to me.

As far as I am aware, the format of perl's native doubles didn't change between versions 5.8.x and 5.10.x. They remain 64-bit IEEE 754 format not the 80-bit long double format. I believe this is also true on 64-bit builds.

Did you build your 5.10 perl yourself? If so, it may be that all you need to do is reconfigure and rebuild to fix the problem.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re: Storable( Double size not compatible in Storable) compatible)

Replies are listed 'Best First'.
Re^2: Storable( Double size not compatible in Storable) compatible)
by Anonyrnous Monk (Hermit) on Jan 07, 2011 at 20:51 UTC
    it may be that all you need to do is reconfigure and rebuild to fix the problem.

    Yes, it's a configuration option: -Duselongdouble  (or -Uuselongdouble to explicitly undefine/disable).

      If it is configurable, Storable ought to be able to handle both and the conversion between the two.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.