slloyd has asked for the wisdom of the Perl Monks concerning the following question:
Works:
Does Not Work:eval {die;}; if (my $e = $@) { # <--- secure... warn "Got the exception '$e'!"; exit(0); }
eval {exit;}; if (my $e = $@) { # <--- secure... warn "Got the exception '$e'!"; exit(0); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: exit inside an eval statement
by aukjan (Friar) on Jul 28, 2005 at 07:54 UTC | |
|
Re: exit inside an eval statement
by brian_d_foy (Abbot) on Jul 28, 2005 at 08:32 UTC | |
by Anonymous Monk on Sep 24, 2016 at 05:35 UTC | |
|
Re: exit inside an eval statement
by anonymized user 468275 (Curate) on Jul 28, 2005 at 08:51 UTC |