The my and our variables, as well as subs, which are defined in the module, are not visible outside of its scope by default. To export a name, the is export trait is required.
unit module X;Β sub x() is export { Β Β Β say "X::x()"; }
This is all you need to do to be able to call the x() sub in the programme using your module.