in reply to Storable: Cannot restore overloading on SCALAR
Then, in another shell, using 5.16.2:D:\pscrpt\storable>perl -MMath::BigInt -MStorable -Mwarnings -le "$mbi + = Math::BigInt->new(12345); Storable::nstore(\$mbi, 'file.s'); $ret += Storable::retrieve('file.s'); print $$ret; print ref($$ret);" 12345 Math::BigInt
However, reading the OP, it seems that it's the other way around ... the file is being created by 5.16.2 and read by 5.38.2.D:\pscrpt\storable>perl -MMath::BigInt::Calc -MMath::BigInt -MStorable + -Mwarnings -le "$ret = Storable::retrieve('file.s'); print $$ret; pr +int ref($$ret);" Cannot restore overloading on ARRAY(0x23df904) (package Math::BigInt:: +Calc) (even after a "require Math::BigInt::Calc;") at C:/_32/ap1600/l +ib/Storable.pm line 380, at -e line 1.
Using 5.38.2:D:\pscrpt\storable>del file.s D:\pscrpt\storable>perl -MMath::BigInt -MStorable -Mwarnings -le "$mbi + = Math::BigInt->new(12345); Storable::nstore(\$mbi, 'file.s'); $ret += Storable::retrieve('file.s'); print $$ret; print ref($$ret);" 12345 Math::BigInt
I tried using store instead of nstore, but then both of those examples fail to retrieve(), reporting:D:\pscrpt\storable>perl -MMath::BigInt -MStorable -Mwarnings -le "$ret + = Storable::retrieve('file.s'); print $$ret; print ref($$ret);" 12345 Math::BigInt
In my case, I think it's the problem of a 32-bit architecture not handling 64-bit stuff.Byte order is not compatible at .... , at -e line 1.
|
|---|