load

# given 'List::Util';

$package = do('load', 'List::Util'); # List::Util

The load function attempts to dynamically load a module and either raises an exception or returns the package name of the loaded module. This function is not exported but can be access via the super-do function.

load(Str $arg1) : ClassName

function

5 POD Errors

The following errors were encountered while parsing the POD:

Around line 12:

Unknown directive: =name

Around line 16:

Unknown directive: =usage

Around line 22:

Unknown directive: =description

Around line 28:

Unknown directive: =signature

Around line 32:

Unknown directive: =type