in reply to Re: Why eval {...};if ($@) { die $@ } else { ...???
in thread Why <c>eval {...};if ($@) { die $@ } else { ...</c> ???
Well.. Actually I don't think you have to play tricks with $SIG{__DIE__} to obtain a different result. calling confess() within the something(...) would show that additional frame as well.
I don't see any reason to want that though. What's that additional frame good for? Apart from maybe causing you to look at that part of the code and thus wasting time. I think the additional frame is at best confusing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Why eval {...};if ($@) { die $@ } else { ...???
by shmem (Chancellor) on Apr 03, 2009 at 23:19 UTC | |
by Jenda (Abbot) on Apr 03, 2009 at 23:43 UTC | |
by shmem (Chancellor) on Apr 04, 2009 at 00:04 UTC | |
by Jenda (Abbot) on Apr 04, 2009 at 00:45 UTC |