I see a couple of issues here:
All in all, since it sounds like you only need to load the module or not, and not actually use any of its functions (?), I would have gone with: eval "use cPanelUserConfig; 1" or warn "Didn't load cPanelUserConfig: $@";.
In reply to Re: 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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |