K
KKramsch
I'm running a script that builds a hash over time, and periodically
saves it using Storable. I use a command-line Perl one-liner to
check the number of keys in the hash so far:
perl -MStorable -e '$h = retrieve "mongo"; printf "%d\n", scalar keys %$h'
As of 6 pm last night the one-liner above would print a positive
integer, increasing with every invocation (as expected), but this
morning (the script has been running all night and it's still
running now) the one-liner prints 0. In fact, another one-liner
reveals that the result of the call to retrieve is now undefined.
The file in question is now 33 MB (and growing). Is there a limit
on the size of an object stored with Storable?
I don't understand why the retrieve operation is now failing,
but from looking at the file with a text editor I can see that
there's a *ton* of valuable info in the file that I'd hate to lose.
Is there any way to recover it? Is there a way to truncate the
file to retrieve at least a subset of the keys with their associated
values?
Thanks!
Karl
saves it using Storable. I use a command-line Perl one-liner to
check the number of keys in the hash so far:
perl -MStorable -e '$h = retrieve "mongo"; printf "%d\n", scalar keys %$h'
As of 6 pm last night the one-liner above would print a positive
integer, increasing with every invocation (as expected), but this
morning (the script has been running all night and it's still
running now) the one-liner prints 0. In fact, another one-liner
reveals that the result of the call to retrieve is now undefined.
The file in question is now 33 MB (and growing). Is there a limit
on the size of an object stored with Storable?
I don't understand why the retrieve operation is now failing,
but from looking at the file with a text editor I can see that
there's a *ton* of valuable info in the file that I'd hate to lose.
Is there any way to recover it? Is there a way to truncate the
file to retrieve at least a subset of the keys with their associated
values?
Thanks!
Karl