in reply to Carping in DESTROY.
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Carping in DESTROY.
by diotalevi (Canon) on Oct 24, 2006 at 17:34 UTC | |
by ikegami (Patriarch) on Oct 24, 2006 at 18:01 UTC | |
by eff_i_g (Curate) on Oct 24, 2006 at 19:10 UTC | |
by Anonymous Monk on Oct 25, 2006 at 10:32 UTC | |
by eff_i_g (Curate) on Oct 25, 2006 at 14:27 UTC | |
|
Re^2: Carping in DESTROY.
by eff_i_g (Curate) on Oct 24, 2006 at 17:33 UTC |