Restrict the import
The user (the script writer) can restrict the list of imported functions but the unsuspecting script write will still get all the functions.
examples/modules/calca_2.pl
#!/usr/bin/perl use strict; use warnings; use lib 'examples/modules'; use A::Calc qw(add); print add(2, 3), "\n";