in reply to Storable Question

According to the documentation for Storable:
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.
So, your code might look something like this:
$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
    I'm sure you here this enough but I will say it anyway.
    Thanks.
    It works perfectly it is exactly what i wanted.. This site is great!