September 2017
Beginner
402 pages
9h 52m
English
The use keyword actually works as a combination of need and import. Similarly, it works at compile time, so the actual position of the use directive is not important (but see the Scoping section later in this chapter).
This keyword is the easiest and the most straightforward way to load a module.
use Add;say add(10, 20); # 30
As soon as the module is loaded, use automatically imports the names from it and they become available in the rest of the program.
Read now
Unlock full access