for example, expression= '/HOST=.*(' will yield a fatal die error..
Not so.
use strict; use warnings; my $w = '$expdata =~ /HOST=.*(;'; eval $w;
eval catches fatals errors and places the message in $@.
In reply to Re: capture errors from eval
by ikegami
in thread capture errors from eval
by sdetweil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |