The answer to point 1) is no. Just the existance of a Module on CPAN doesn't give you the right to distribute it in they way you suggest. Many modules on CPAN will allow you to redistribute them (but be aware of modules that are GPL only, if your program isn't GPLed, it could be that you cannot include the module in your program the way you propose), but that is not implied by the module being present on CPAN. All that is implied is that you can distribute the module as it is found on CPAN, which will often be a tarball suitable for the perl Makefile.pl; make; make test; make install; route.

As for point 2), I would really loathe authors that put Modules in (a subdirectory of) the directory executables are found. Modules are modules, and should go into a module directory, so they can be shared with other programs that do play the game as it should be played. If you think there are admins out there who cannot install modules, the proper way is to write a document explaining how to install modules instead of making a mess of some systems. Besides, you like your programs to be used, don't you? Make a mess and garanteed, admins all over the world toss your code from their systems as fast as they installed it, and ban anymore code from the same author.

-- Abigail


In reply to Re: Including Modules with a script by Abigail
in thread Including Modules with a script by Mandor

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.