develooper Front page | perl.perl5.porters | Postings from June 2004

Re: [perl #29696] local($@) hides active exception return value

From:
Nick Ing-Simmons
Date:
June 1, 2004 08:13
Subject:
Re: [perl #29696] local($@) hides active exception return value
Message ID:
20040601151255.7519.4@llama.elixent.com
David Muir Sharnoff <muir@idiom.com> writes:
>* For whatever definition of "working". ;-)
>
>* Huh? What exactly do you mean by "it does work"?
>
>Sorry, my mistake.   I had thos tests in among many other
>and mistook which test number it was.
>
>I guess I'll file this in the wish-it-weren't-so bucket.

FWIW being able to protect $@ is handy for things like %SIG handlers
and Tk callbacks.

One doesn't want user's  eval / $@ pairs to break if out-of-line 
code happens.

  eval { ... }
  # SIGNAL happens here
  if ($@)
   {
   }





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About