One word of advice on creating your own modules: Use
h2xs to generate your module. It builds all the necessary bits (Makefile.PL, POD stub, etc..) and makes it easy to bundle the module for redistribution and testing cpan style...
$ h2xs -A -X -n Example::Plugh
Writing Example/Plugh/Plugh.pm
Writing Example/Plugh/Makefile.PL
Writing Example/Plugh/test.pl
Writing Example/Plugh/Changes
Writing Example/Plugh/MANIFEST
After h2xs has built the boilerplate, just fill in all your code and you're ready to go.