Outaspace has asked for the wisdom of the Perl Monks concerning the following question:
my $text = read_some_file_or_else(); eval $text; if ($@) { print "Error in eval: $@"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Stopping code in eval
by samtregar (Abbot) on Jul 19, 2006 at 22:00 UTC | |
|
Re: Stopping code in eval
by ikegami (Patriarch) on Jul 20, 2006 at 00:19 UTC | |
|
Re: Stopping code in eval
by Joost (Canon) on Jul 19, 2006 at 22:02 UTC | |
|
Re: Stopping code in eval
by rodion (Chaplain) on Jul 19, 2006 at 22:23 UTC | |
|
Re: Stopping code in eval
by liz (Monsignor) on Jul 20, 2006 at 18:19 UTC | |
|
Re: Stopping code in eval
by ioannis (Abbot) on Jul 20, 2006 at 02:04 UTC |