develooper Front page | perl.module-authors | Postings from September 2018

Re: executable only Perl distributions & CPAN

Thread Previous | Thread Next
From:
James E Keenan
Date:
September 7, 2018 21:03
Subject:
Re: executable only Perl distributions & CPAN
Message ID:
8a953554-9e2b-4238-c38f-346b08617bf5@pobox.com
On 09/07/2018 04:18 PM, Karen Etheridge wrote:
> 
> 
> On Fri, Sep 7, 2018 at 12:59 PM, Diab Jerius <djerius@cpan.org 
> <mailto:djerius@cpan.org>> 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.  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.

+1

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About