Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7604697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:58:47+00:00 2026-05-30T23:58:47+00:00

I wrote a few Perl libraries(.pm) and Perlscripts(.pl) on Ubuntu and I need to

  • 0

I wrote a few Perl libraries(.pm) and Perlscripts(.pl) on Ubuntu and I need to distribute them to my colleagues in my office. Those scripts and libraries require third party libraries. I want to make it very simple.

Infomation about me.

  • I know how to create a Perl script.
  • I know how to create bash file.
  • I have no experience in creating MAKE file, rpm, Deb etc.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T23:58:48+00:00Added an answer on May 30, 2026 at 11:58 pm

    I’d recommend using Module::Starter to set up a template for each module. Once it’s installed, you can call module-starter from the command line, eg:

    module-starter --module=My::Module --author="Jessada Thutkawkorapin" --email=your@email.com
    

    or, if you want a distribution with multiple modules:

    module-starter --distro=Foo --module=Foo,Foo::Bar,Foo::Baz --author="Jessada Thutkawkorapin" --email=your@email.com
    

    Then, just overwrite the .pm files with your modules, include any unit tests that you want to run (the default tests basically check the syntax of the module along with the pod syntax). A basic installation of the modules is then done via

    perl Makefile.PL
    make
    make test
    make install
    

    (technically, make test is optional, but it’s highly recommended).

    Now, if these modules rely on other CPAN modules, then you can use the module CPAN to install them, eg:

    use strict;
    use warnings;
    use CPAN;
    
    #populate however you'd like, either hard-coded, read from a file, etc.
    my @modules_to_install=(); 
    
    foreach(@modules_to_install)
    {
      CPAN::Shell->install($_);
    }
    

    So, you can distribute a zip/tarball/etc with the folders and files that module-starter started (and that you modified) along with the above script to install any CPAN dependencies, and call it, say, cpan_install.pl. If you want, you can then wrap everything up in a final script called, say, install.pl that does all of these things.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got quite a few GreaseMonkey scripts that I wrote at my work which
I wrote few custom view helpers but I have a little trouble using them.
I wrote a few cool programs and tested them with Windows 7 and OS
I wrote few lines of code which doesn't work correctly. Why? Could sb explain
I was thinking about a code that I wrote a few years ago in
Back in VB6, I wrote a few functions that would let me code without
i need to write few applications about lowlevel videocard controling for my coursework. For
I need to write some scripts to carry out some tasks on my server
I have some code I wrote a few years ago. It has been working
A few weeks ago I wrote an SNMP relayer for our ops group. They

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.