in reply to question about checking a script for errors from within a perl program

It sounds like you want to enclose your 'require' in an eval block to trap exceptions.
eval { require '/home/path/to/upgrade/files/my_code.conf'; }; if ($@) { warn "The require of 'my_code.conf' failed. Here's why: $@\n"; }
"perldoc -f eval" for more information.
  • Comment on Re: question about checking a script for errors from within a perl program
  • Download Code