in reply to Re^3: Carping in DESTROY.
in thread Carping in DESTROY.
I partially understand this. This is what Storable is doing:sub DESTROY { my $self = shift; eval { store $self, DATA_FILE }; die $@ if $@; }
I'm still a little confused why I have to capture the croak and then die, as opposed to letting it croak.... sub logcroak { Carp::croak(@_); } ... open(FILE, ">$file") || logcroak "can't create $file: $!"; ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Carping in DESTROY.
by Anonymous Monk on Oct 25, 2006 at 10:32 UTC | |
by eff_i_g (Curate) on Oct 25, 2006 at 14:27 UTC |