in reply to Re: return eval { die() } idiom
in thread return eval { die() } idiom
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...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: return eval { die() } idiom
by monsieur_champs (Curate) on Aug 29, 2003 at 21:05 UTC | |
|
Re: Re: Re: return eval { die() } idiom
by tcf22 (Priest) on Aug 29, 2003 at 19:54 UTC |