in reply to Pure perl lexical sub import

namespace::clean and namespace::autoclean are solutions to that problem.

The key part of the latter is Pure Perl and only uses a core module.

Replies are listed 'Best First'.
Re^2: Pure perl lexical sub import
by NERDVANA (Priest) on Dec 22, 2024 at 20:14 UTC
    A variation on that is I can say "undef *NAME" for each imported function at the end of the module, but I have to remember to keep that list updated.