thanks, but that I understand:
eval { # blah blah... die ("fooblah"); # or something_that_may_die(); }; if($@) { # do something }
That's how I would normally use it.
I'm talking about this: "return eval { BLOCK }", where BLOCK is the main block of your code...
In reply to Re: Re: return eval { die() } idiom
by lestrrat
in thread return eval { die() } idiom
by lestrrat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |