DEV Community

Cover image for Avoid CPAN conflicts in your personal Perl modules
Mark Gardner
Mark Gardner

Posted on • Originally published at phoenixtrap.com on

1 1

Avoid CPAN conflicts in your personal Perl modules

If you’re writing Perl that’s never going to the Comprehensive Perl Archive Network (CPAN), heed this little-known note on the Perl Authors Upload Server (PAUSE):

By convention, the top-level Local namespace should never conflict with anything on CPAN. This allows you to be confident that the name you choose under Local isn’t going to conflict with anything from the outside world.

PAUSE: On The Naming of Modules

So, Local::MyModule, Local::App::MyApp, whatever. This is also good advice for bespoke applications and libraries (the so-called DarkPAN) you’re developing in-house. The last thing you need is to accidentally bring in (perhaps via dependencies) a module that gets loaded instead of yours.

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay