export

A module can contain subs an variables like any other Perl code or a class. To make subs and variables visible to external (in respect to the module) files, the corresponding item should be marked with the trait is export:

module X;

sub x() is export {
    say "X::x()";
}