Syntactic Confectionery Delight | |
PerlMonks |
Re^3: Using eval: $@ isn't returning the error I expectby haukex (Archbishop) |
on Feb 20, 2020 at 00:12 UTC ( [id://11113209]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|