in reply to Reading 32-bit Storable files on 64-bit system

If you want compatible Storable files, then you have to use nstore() instead of store() when dumping. That's all.
  • Comment on Re: Reading 32-bit Storable files on 64-bit system

Replies are listed 'Best First'.
Re^2: Reading 32-bit Storable files on 64-bit system
by marky1124 (Novice) on Dec 21, 2007 at 11:34 UTC
    Fantastic thank you. nstore() seems to allow exchange of storable files both ways round from 32-bit to 64-bit and vice versa, and there appears to be no performance or file size penalty with nstore() vs store().

    The only thing that would be better would be if retrieve() were able to use the 'longsize', 'ptrsize' and 'byteorder' values from the header and interpret the file appropriately. That would assist me with the thousands of store()'d storables I already have.

    Cheers,
    Mark