in reply to Storable- long integer size
Using Storable to transfer data between Perl installations is not really advisable in my opinion. You need to make sure that the Perl and Storable versions are identical and also that the flags used to compile Perl are identical. You also need to make sure to use nstore* instead of store everywhere (even though that shouldn't matter when moving between the same CPU platform). Maybe your OSX Perl is compiled with 64bit long and the Windows Perl is not? Or maybe it's the other way around?
You can find out where the differences between your Perl versions lie by comparing the output of perl -V in both environments.
If you mostly need a one-time migration, consider using Data::Dumper to transfer the data from the old environment to the new environment. If the file size is too large, Sereal also might be byte-order independent.
Personally, I would look at using SQLite or SQL as a transfer mechanism, or JSON. JSON doesn't like to export blessed structures though.
Having an export and import feature is also a good approach for having good backups, in the case that the original environment was lost and cannot be restored as easily as a similar but crucially different environment.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Storable- long integer size
by syphilis (Archbishop) on Oct 21, 2015 at 11:46 UTC | |
by Tux (Canon) on Oct 21, 2015 at 13:19 UTC | |
by syphilis (Archbishop) on Oct 21, 2015 at 13:36 UTC | |
by syphilis (Archbishop) on Oct 22, 2015 at 06:25 UTC | |
by BrowserUk (Patriarch) on Oct 22, 2015 at 06:35 UTC | |
|