in reply to feedback on successful module loading
That wouldnt work. The use() is executed during the parsing of the BEGIN block and so is already over by the BEGIN's runtime starts. Normally you'd write this using require.
BEGIN { eval { require CGI } or print "failed\n"; }
|
|---|