use Module::Load; eval { autoload 'cPanelUserConfig'; 1 } or print "toast";
This code works fine for me. Are you sure this is exactly the code you tried?
Also, just to make sure, tell us what version of Perl and the module you're using, as given by perl -MModule::Load -le 'print $]; print $Module::Load::VERSION' (on the command line).
In reply to Re^3: Using eval: $@ isn't returning the error I expect
by haukex
in thread [SOLVED] Using eval: $@ isn't returning the error I expect
by doctormelodious
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |