June 25, 2008
Josť's Guide for creating Perl modules

From time to time, someone with little experience comes to me and asks: "I'd like to create a module. What do I do?"

In order to answer that question to as many people as possible at the same time, I decided to write this guide.

How to make a CPAN Module Distribution

OK so you have learnt a bit of perl and have a great idea for a module. Here is how you go about making a distribution fit to go on CPAN. For background see Simple Module Tutorial and A Guide to Installing Modules Simon Cozens has a good overview of the process at perlnewmod. This tutorial is more hands on nitty gritty.

So you're all fired up to make your new widget module. Before you start it may be worthwhile to have a look at what already exists. You have many options open to you: