Product Site

5.1.5.25. loadPackage

Loads a package and adds it to the list of packages loaded by the package manager. If only name is specified, name identifies a file that will be located and loaded as if it had been named on a ::REQUIRES directive. The file is searched for using the external program search order.

If source is given, it must be an array of strings that is the source for the loaded package.

If a package name has already been loaded by the package manager, the previously loaded version will be used.

The resolved package object will be added to the receiving package object's dependent packages.