in reply to Re^2: Why eval {...};if ($@) { die $@ } else { ...???
in thread Why <c>eval {...};if ($@) { die $@ } else { ...</c> ???
What's that additional frame good for?
something() might be in some other module which you don't control. That technique allows you to delay the exit until the very line where you choose to die. An that's precisely what eval BLOCK is all about - delay the die, to mask it or die elsewhere.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Why eval {...};if ($@) { die $@ } else { ...???
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 |