On Thu, Jan 26, 2006 at 07:47:07AM -0500, Patrick LeBoutillier wrote:
> 
> > eval { call_some_java() }
> > if($@)
> > {
> >    [EMAIL PROTECTED]>getMessage();
> >    [EMAIL PROTECTED]>getMessage();
> > }
> >
> > fail but
> 
> When you call [EMAIL PROTECTED]>getMessage(), it in turn has eval{} statements
> inside it somewhere, thereby resetting the $@ globlal variable.

Is there some reason why the code within getMessage that calls eval {}
can't do

        local $@;

to protect the caller from such surprises?

Tim.

Reply via email to