in reply to Re: Using eval: $@ isn't returning the error I expect
in thread [SOLVED] Using eval: $@ isn't returning the error I expect
I tried this:
use Module::Load; eval { autoload 'cPanelUserConfig'; 1 } or print "toast";
and got this error:
syntax error at /Library/WebServer/CGI-Executables/orders/orderFormSal +esDisplayPreRollout.cgi line 15, near "autoload 'cPanelUserConfig'" Execution of /Library/WebServer/CGI-Executables/orders/orderFormSalesD +isplayPreRollout.cgi aborted due to compilation errors.
When I commented out the eval statement, the script ran, which would indicate that Module::Load is indeed installed.
Thanks again!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using eval: $@ isn't returning the error I expect
by haukex (Archbishop) on Feb 20, 2020 at 00:12 UTC | |
by doctormelodious (Acolyte) on Feb 20, 2020 at 00:31 UTC |