I'm curious about how CPAN handles bundles. What makes a bundle a bundle? Is it just any module starting with the name "Bundle"?

The bundle contains a .pm file with a bunch of pod containing the names of modules that are members of the bundle. In order to install those member modules, CPAN has to take the actual bundle .pm file and stick it in @INC and then do the bundle voo-doo. How does that work? Can anyone explain that voo-doo?

I can make my own custom bundles, by creating the .pm file with the appropriate pod, sticking it in "cpan_home/Bundle/" and then running "i Bundle::name_of_bundle".

I'm asking all this because I'm trying to include custom bundles in a CPAN::Mini with CPAN::Mini::Inject, but it's not working. I think I need to understand the under-the-hood mechanisms of CPAN in regards to bundles in order to figure this out.

This post is the third in a series: CPAN and Site Modules and CPAN::Mini::Inject and Bundles.

Update: Success!! See CPAN::Mini::Inject Discoveries.


In reply to Bundle basics by pileofrogs

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.