UNIVERSAL::require

UNIVERSAL::require

概要

require UNIVERSAL::require;

# Same as "require Some::Module"
my $module = 'Some::Module';
$module->require or die $@;

# Same as "use Some::Module"
BEGIN { $module->use or die $@ }