It's actually pretty common to have an examples/ dir included with the distribution. It's fairly rare for any of the examples to actually install anywhere. LWP comes with a few programs that install in /usr/bin, so you might check there for an example of installing examples...

For examples of modules that include examples that don't install, look at things like POE, Mail::SPF::Query, Math::BigInt, Digest::SHA, Archive::Zip, Compress::Zlib, et al. (Those are just some of the ones that happened to be in my .cpan/build dir.)

I think it is indeed the standard practice to include the examples but not install them. I imagine the idea is that if people want the examples then they can perl -MCPAN -e 'get Distro::Name' even if they weren't the ones that actually installed the module.

-Paul


In reply to Re: examples in CPAN distributions by jettero
in thread examples in CPAN distributions by zby

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.