|Perl Monk, Perl Meditation|
What's the best way to handle the installation and or distribution of a Perl script?by taint (Hermit)
|on Nov 24, 2013 at 21:17 UTC||Need Help??|
taint has asked for the
wisdom of the Perl Monks concerning the following question:
I've been laboring over this for awhile, and can't seem to come up with the ultimate/ideal answer.
More specifically; If I intend to create a distribution comprised of only a simple Perl script (somescript.pl). Does it make any sense to even attempt a typical install?
or does it simply make more sense to make the install sub simply emit a message:
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". 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.
Tnanks for all your consideration.
#!/usr/bin/perl -Tw use Perl::Always or die; my $perl_version = (5.12.5); print $perl_version;