Try UNIVERSAL::require?
require UNIVERSAL::require; # Same as "require Some::Module" my $module = 'Some::Module'; $module->require or die $@;
Docs suggest using in a BEGIN block to emulate "use" which might work at compile time for you.
In reply to Re: Runtime syntax checking of a 'require'ed module
by Your Mother
in thread Runtime syntax checking of a 'require'ed module
by barvin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |