in reply to Capturing Text from a die command

If you want to log a death, simply put in a log entry for this right before you explicitly die:
$l->add("Log line 1","cat to log"); #...intervening program $l->add("Died for some reason"); die "Died for some reason...";

-Mark

Replies are listed 'Best First'.
Re: Re: Capturing Text from a die command
by or10n (Initiate) on May 14, 2004 at 17:59 UTC
    I understand that, I am trying to be a bit more elegant than that, I am not trying to write a wrapper, or duplicate work, that would not be a good class if I had to do that.