__DIE__

der.hans PLUG@LuftHans.com
Tue, 15 Aug 2000 13:07:47 -0700 (MST)


Am 15. Aug, 2000 schwäzte David Sinck so:

> try looking at eval.
> 
> 
> eval {block};
> 
> if ($@)
> {
>   print "Hey I just borked: $@\n";
> }
> else
> {
>   print "My happy.\n";
> }

Hey, cool. Danke. Almost shoulda thought of that myself :).

> very similar to try catch in other <bait>lesser</bait> languages.
> :-)

It would be nice to have a throw/catch mechanism, but this appears to fit
the need.

Generaly eval() is seen as being expensive for execution efficiency. How
about throw/catch mechanisms in other languages?

ciao,

der.hans
-- 
#  der.hans@LuftHans.com   home.pages.de/~lufthans/   www.Opnix.com
#  Science is magic explained. - der.hans