The devel/p5-namespace-clean port
p5-namespace-clean-0.27p0 – keep imports and functions out of your namespace
The namespace::clean pragma removes all previously declared or imported
symbols at the end of the current packages compile cycle. Functions
called in the package itself will still be bound by their name, but they
won't show up as methods on the class or its instances.