Monks,
I'm calling Storable's store within a DESTROY method, and I'm not getting an error for a read-only file. I was (still am) very puzzled, but I eventually received the error by changing "DESTROY" to "end" and explicitly calling $object->end();.
Why am I not getting the error in DESTROY, and how can I handle this properly? A tiny code snippet is below, which works properly when DATA_FILE is writeable:
sub DESTROY {
my $self = shift;
store $self, DATA_FILE;
}