I'm looking for a way to tell if a series of modules has loaded without having the script die on failure to load. My only idea so far is shown below, but it doesn't work. Out of desperation, I've tried backticks around use CGI but, predictably, that fails also. I don't want to use a use CGI or die kind of construct because I want feedback to know if all the modules loaded or which (if any) modules failed to load.
Is there a way to do this?
if (use CGI){ print "use CGI worked\n"; } else{ print "failed\n"; }
In reply to feedback on successful module loading by ggg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |