http://www.perlmonks.org?node_id=695618

jacques has asked for the wisdom of the Perl Monks concerning the following question:

So I have a suite of modules under a namespace. Lets call it 'Foo::Bar'. So one of these modules would be:
Foo::Bar::Asdf.pm
Anyway, I noticed that all of the modules under 'Foo::Bar' use CGI::Carp 'fatalsToBrowser'.
package Foo::Bar::Asdf; use CGI::Carp 'fatalsToBrowser';
There are a lot of modules under this namespace and they all import the same subroutine. What I would like to do is to stop declaring use CGI::Carp 'fatalsToBrowser' for every module and only declare it once. How could I do this, without using a new base class?