http://www.perlmonks.org?node_id=1064155


in reply to What's the best way to handle the installation and or distribution of a Perl script?

modulinos / modulinos , distributions / distributions

Does it make any sense to even attempt a typical install?

Yes, absolutely, its what its for

or does it simply make more sense to make the install sub simply emit a message:

"install sub"? pointless busywork ... and annoying too (stupid computer program here, you've asked me dance, but I want YOU to dance monkey)

If in the "traditional" sense of a distribution; how might I best determine what system (OS) I'm on, in order to copy the script to a proper "bindir".

In the traditional sense of a distribution, its none of your business; let ExtUtils::MakeMaker, or Module::Install handle it for you, cause thats its job; If you still want to know, you know where to look :)

I'm guessing to the Perl dir is probably the best choice. But thought I'd ask. To get thoughts on the matter, I hadn't already considered.

You've got enthusiasm, FANTASTIC, now leverage that enthusiasm to employ less guessing, more RTFM, more super search, more try it to see ... before you burn out and the enthusiasm wanes

modulinos / modulinos , distributions / distributions

  • Comment on Re: What's the best way to handle the installation and or distribution of a Perl script?

Replies are listed 'Best First'.
Re^2: What's the best way to handle the installation and or distribution of a Perl script?
by taint (Chaplain) on Nov 24, 2013 at 23:17 UTC
    Points well taken.

    Fact is, it's quiet here today, and while I'm aware of documentation. I see very little (nearly none) specific information regarding such an endevour. I actually spent a great deal of time on this (looking). As I thought it might be a great "how-to" Module/FAQ for aspiring Authors. There's volumes of information on the creation/maintaining of "typical" Module creation, but precious little on simple script authoring/maintenance. So hence initiating this thread here on PerlMonks for input/feedback.

    --Chris

    #!/usr/bin/perl -Tw
    use Perl::Always or die;
    my $perl_version = (5.12.5);
    print $perl_version;
        Just my point.

        With the possible exception of ExtUtils::MakeMaker, there's no "definitive" answer to creating a CPAN distribution containing a single Perl script, designed for utilitarian purposes.

        All the other references you provided. Were inconclusive.

        --Chris

        #!/usr/bin/perl -Tw
        use Perl::Always or die;
        my $perl_version = (5.12.5);
        print $perl_version;