locked_user mr_leisure has asked for the wisdom of the Perl Monks concerning the following question:

Howdy folks - I have been asked to create a Perl Module based on a program i recently wrote at work. I have looked around the site for hints, but alas to no avail. So - what i need to know is some good resources for writing your very first Perl Module, or possibly something on converting to a Perl Module? As always, any response is greatly appreciated. Cheers, ML p.s. I was going to ask this in chatterbox, but my site search showed there were no questions on this, so here it is...
if ($mr_leisure) { bow; }

Replies are listed 'Best First'.
Re: Perl Modules
by davorg (Chancellor) on Jan 03, 2001 at 16:18 UTC

    There's some good advice on this in the perlmod man page and I think there's a chapter on it in "Effective Perl Programming".

    --
    <http://www.dave.org.uk>

    "Perl makes the fun jobs fun
    and the boring jobs bearable" - me

Re: Perl Modules
by clemburg (Curate) on Jan 03, 2001 at 17:28 UTC

    Read Effective Perl Programming, pages 177 to 195, chapter "Writing Packages and Modules".

    Christian Lemburg
    Brainbench MVP for Perl
    http://www.brainbench.com

Re: Perl Modules
by Malkavian (Friar) on Jan 03, 2001 at 19:26 UTC
    There's a section in CPAN on the subject of building modules.
    Perhaps you'd find that helpful..

    Malk
Re: Perl Modules
by OeufMayo (Curate) on Jan 03, 2001 at 16:22 UTC

    RTFM

    Update : Mmmh, allright, here's a link about Perl Module Mechanics - it explains everything from creating a new module with h2xs to documenting it with POD.

    <kbd>--
    PerlMonger::Paris(http => 'paris.pm.org');</kbd>
Re: Perl Modules
by knight (Friar) on Jan 03, 2001 at 17:25 UTC
Re: Perl Modules
by damian1301 (Curate) on Jan 04, 2001 at 04:22 UTC
    There is also a good section in Programming Perl 3rd Edition on it. It tells you all you need to know about installing, writing, and storing your modules (on CPAN)and I think Damian Conway has a book on it too. Other than that, a nice search around this site and on http://google.com always provide more than enough information for me, so best of luck to ya!

    Wanna be perl hacker.
    Dave AKA damian