On 3/6/06, Tom Allison <[EMAIL PROTECTED]> wrote: > The problem I run into is throwing the exceptions up to the top eval{} > structure when I need to communicate that something didn't work right > so I can provide feedback to the network client connection. > > I suppose I could try and rewrite the code to un-nest the eval{} > statements but I think that is avoiding learning something I should know > about how to manage eval{} for block exception handling. > > Is there some way to rethrow or propogate errors or some tips on how to > manage this better?
I think you should die. The die() function (when called within an eval {}) is similar to the raise() function in most languages that support a try {} catch {}; syntax. Your code is already doing the right thing in the deeper sections (catching the error, and either handling it or raising it). -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>