in reply to return eval { die() } idiom
Instead of:myfunc() or print "something bad in myfunc $@\n";
I haven't seen this in Perl, that I recall.eval { myfunc() } or print "something bad in myfunc $@\n";
It might make sense sometimes, but I suspect that with 2 or more levels of calling functions you end up doing a whole lot of re-die-ing.
Interesting anyway.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: return eval { die() } idiom
by dragonchild (Archbishop) on Sep 02, 2003 at 15:43 UTC |