So I'm writing a set of perl modules which will be used for both cli and web tools (Mason). My one problem right now is that I'm trying to figure out the best way to load either Carp or CGI::Carp at runtime depending on the environment. I've tried using require/import inside of a BEGIN block, but Carp doesn't have an import; it only seems to load properly with use.