(Edited about 45 minutes after initial submission)

Greetings.

It has been a long time since I had time on my hands to pursue more knowledge. Unfortunately, I have that time now. :-( That aside...

Some years ago I posted a module to CPAN, along with a command-line utility that would use that module. As per Sam Tregar's sound advice I started with h2xs and created the usual hierarchy. But it did not include a directory for script files that are not part of the module. So here is the directory structure with incriminating names changed.

drwxr-xr-x+ 1 RPaskudniak None 0 Nov 21 2013 blib drwxr-xr-x+ 1 RPaskudniak None 0 Nov 20 2013 lib -rw-r--r-- 1 RPaskudniak None 24074 Dec 11 2013 Makefile -rwxr-xr-x 1 RPaskudniak None 1297 Mar 3 2011 Makefile.PL -rwxr-xr-x 1 RPaskudniak None 172 Nov 20 2013 MANIFEST -rw-r--r-- 1 RPaskudniak None 568 Nov 20 2013 META.yml -rw-r--r-- 1 RPaskudniak None 500 Dec 11 2013 MYMETA.yml -rw-r--r-- 1 RPaskudniak None 0 Dec 11 2013 pm_to_blib -rwxr-xr-x 1 RPaskudniak None 15000 May 6 2012 README drwxr-xr-x+ 1 RPaskudniak None 0 Feb 5 2014 scripts <<<***>>> drwxr-xr-x+ 1 RPaskudniak None 0 Nov 20 2013 t

Note that scripts directory: h2xs did not create that; I manually created that. And somehow, when I ran the final make install, the utility program ended up in the right place, /usr/local/bin.

I have no recollection of how I got that to work. I likely asked someone but I just don't recall what I did right. I don't think I had to mess with the Makefile.

So my bottom line question is:

Is there an option to h2xs that makes allowances for a bin or scripts directory whence to place a stub for a Perl program related to the module? Or lacking such an option, is there an alternative to h2xs that does make such an allowance?

This humble memory challenged peasant begs a memory kick-start to get restarted; I'm planning a module that will need at least 5 utilities that I can think of.

This humble peasant (with some grand delusions) thanks y'all.


In reply to Creating a bin or script directory with h2xs by rpaskudniak

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.