Subject: | Storable retrieval failure |
This is probably me, but I'm having a hard time figuring out what's
going on. I'm storing a DateTime and it seems that when I push a new
item to the storable array, which includes DateTime, it corrupts the
Storable file, such that I can no longer retrieve(). :(
Here's the error message:
Error executing run mode 'start': Parameter #1 (undef) to
DateTime::Locale::load was an 'undef', which is not one of the allowed
types: scalar
at /usr/local/share/perl/5.8.4/DateTime/Locale.pm line 199
DateTime::Locale::load('undef', 'undef') called at
/usr/local/share/perl/5.8.4/DateTime/Locale/Base.pm line 135
DateTime::Locale::Base::STORABLE_attach('DateTime::Locale::en',
0, 'undef') called at ../../lib/Storable.pm (autosplit into
../../lib/auto/Storable/_retrieve.al) line 331
eval {...} called at ../../lib/Storable.pm (autosplit into
../../lib/auto/Storable/_retrieve.al) line 331
Storable::_retrieve('/path/to/logs/imports.frz', 0) called at
../../lib/Storable.pm (autosplit into
../../lib/auto/Storable/retrieve.al) line 303
Storable::retrieve('/path/to/logs/imports.frz') called at
StoreImportApp.pm line 34
StoreImportApp::start('StoreImportApp=HASH(0x81515dc)') called
at /usr/local/share/perl/5.8.4/CGI/Application.pm line 152
eval {...} called at
/usr/local/share/perl/5.8.4/CGI/Application.pm line 151
CGI::Application::run('StoreImportApp=HASH(0x81515dc)') called
at /path/to/cgi/store_import.cgi line 9, at StoreImportApp.pm line 34
at /path/to/cgi/store_import.cgi line 9