There are a few things you should consider. Is this going to be an OO class? Or just a module with functions? Will it export functions and variables? The most complete doc I know of is
perlmod.
If you're going to be doing OO stuff, you'll want to read perlboot and perltoot also.