Course of Raku / Advanced / Modules / Module introspection
Quiz — The Stash
The Greeting module exports hello and
defines our $version. What does
Greeting::.keys.sort return?
| 1 | ($version EXPORT) |
| 0 | ($version) |
| 0 | ($version &hello) |
| 0 | (hello version) |
$version is the module’s our variable,
listed with its sigil. EXPORT is the package Raku adds
automatically to carry the is export names, so the exported
hello shows up there rather than as a package name of its
own.
Course navigation
← Solution: Look up a symbol | Installing modules from the web →