in reply to convert 32-bit storables to 64-bit

No. Basically, Storable can only load files created with the same architecture and version of Perl.

You should consider a different serialization format. For example, JSON or maybe Sereal. If you have the CPU and disk to spare, Data::Dumper can also produce output that is highly likely to be loadable on a different machine, architecture and version of Perl.

Replies are listed 'Best First'.
Re^2: convert 32-bit storables to 64-bit
by McA (Priest) on Nov 06, 2014 at 14:12 UTC

    Hi Corion,

    may I cite the documentation of Storable:

    Surprisingly, the routines to be called are named freeze and thaw. If you wish to send out the frozen scalar to another machine, use nfreeze instead to get a portable image.

    We work with nfreeze a long time now without any known hassle. But, yes, using freeze crossing architecture boundaries does make problems.

    Regards
    McA

      Thank you for prompting me to (re)read the Storable documentation!

      It seems that Storable got much better especially with forward compatibility since I last looked closely at it.

      I think is the same for nstore, or I have to rewrite my portable project??!? ;=)


      L*
      There are no rules, there are no thumbs..
      Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.