in reply to Storable Question
So, your code might look something like this:Storable uses the "exception" paradigm, in that it does not try to workaround failures: if something bad happens, an exception is generated from the caller's perspective (see Carp and croak()). Use eval {} to trap those exceptions.
$existref = eval { retrieve($filename) }; if (not $existref) { nice_error_message("Error retrieving data: $@"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Storable Question
by pdaggett (Initiate) on Jan 31, 2001 at 02:40 UTC |