Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I wrote a Perl module a few months ago. It's really simple really, it just uses LWP::Simple and pulls a few sections of code out.

Right now I have it set in my /lib/ on my website and I asked my web host to install it globally on the server so everyone can use it.

How does one go about creating an installer for it? It's easy for me to put in the lib folder but he wants some kind of installer or something. Is this an easy thing to do?

Thanks

Replies are listed 'Best First'.
Re: module installer
by PodMaster (Abbot) on Jan 27, 2005 at 07:10 UTC
Re: module installer
by saintmike (Vicar) on Jan 27, 2005 at 07:39 UTC
    If you're getting into the habit of creating new scripts and module distributions, tmpl simplifies the task.

    Configure it once with your name, email address etc. according to the documentation (essentially just a config file called ~/.tmpl in your home directory) and then call

    tmpl -pd Foo::Bar
    (pd=perl distribution) to create a new subdirectory Foo-Bar with everything it takes for a module distribution ready for CPAN. Just like h2xs -AXn Module::Name, just simpler and customized for your purposes.

    Or, if you just want a new script:

    tmpl -p script.pl
    will create one using a template with your default settings and a template for POD documentation. Just fill in the gaps.