in reply to question about checking a script for errors from within a perl program
"perldoc -f eval" for more information.eval { require '/home/path/to/upgrade/files/my_code.conf'; }; if ($@) { warn "The require of 'my_code.conf' failed. Here's why: $@\n"; }
|
|---|