I don't know whether CPAN has a no-binary policy (if you really going to include compiled binaries :), I tried to look that up but couldn't find anything. So I would like to forward that question to other monks :) But executable Perl scripts should be no problem at all.

About files: yes, putting the executables in a special directory will work, eg. exe/ or bin/. But note: If you want that exe to be installed with your module you have to adjust Makefile.PL (or Build.PL, or whatever you use for your module).

If my module comes with executable scripts I usually put them in a bin/ directory and adjust the Makefile.PL like this (I'm using MakeMaker):

use strict; use warnings; use ExtUtils::MakeMaker; WriteMakefile( NAME => 'BS', # ... EXE_FILES => [qw(bin/bs bin/bsxmpp bin/bsirc bin/bshttp +bin/prelay bin/bslogparse bin/bsconf)], #... );

With that the scripts/binaries are installed when the module is installed. I hope this helped a bit?


In reply to Re: Including exes in a cpan dist by elmex
in thread Including exes in a cpan dist by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.