Re: executable only Perl distributions & CPAN
[email protected] (Diab Jerius) Fri, 7 Sep 2018 16:24:03 -0400
| Newsgroups | perl.module-authors |
|---|---|
| Message-ID | <CADpyd5AbEntZKK7r7O6Ce=a4UmXtJ75UjqF6kFwKx4JFCTmUWg@mail.gmail.com> |
On Fri, Sep 7, 2018 at 4:18 PM, Karen Etheridge <[email protected]> wrote: > > > On Fri, Sep 7, 2018 at 12:59 PM, Diab Jerius <[email protected]> wrote: >> >> >> I see two options: >> >> 1. Create an empty package which gets indexed; or >> 2. Add an entry to the "provides" field mapping the distribution's >> "package" name (App::pltvectors) to the script file. > > > Option 1 is correct -- create an App::pltvectors module which is indexable > and installable. Ok. > However, it doesn't need to be an empty package -- not > only can it contain documentation for your script, but it could also contain > most of the functionality from the script as well, turning the script into a > wrapper that calls the module. That also allows others to make use of the > code in their own scripts. Modernizing 20 year old Perl distributions which used autotools for installation happens just one step at a time... Thanks, Diab