Storable's documentation states that store() returns undef on failure, and that failure usually indicates an IO error. Thus, you should be checking its return value just as you would check the return value of other IO calls.
store $self, DATA_FILE or die "Couldn't store object.\n";
Dave
In reply to Re: Carping in DESTROY.
by davido
in thread Carping in DESTROY.
by eff_i_g
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |