In a presentation at the Second German Perl Workshop, Andreas König, author of CPAN, gave a talk on his module, mentioning explicitly that you are expected to manage the dependencies in a bundle file yourself. The autobundle feature is merely a convenience to get you started.

My advice would be to generate a snapshot with the autobundle feature, and then hand-tune it till you like it. Core modules should be avoided, since they will install a new perl (as brother Fastolfe pointed out). You can install core modules *without* installing a new perl by hand-fetching (or building) a distribution tarball for them, and installing that by a local script.

This trivial subroutine does a simple install from a distribution tarball under Linux/Unix:

sub install_perl_module { my ($tarball) = @_; my $dir = $tarball; $dir =~ s/\.tar\.gz//; my $cmd = 'tar -zxvf ' . $tarball . ' ; ' . 'pushd ' . $dir . ' ; ' . 'perl Makefile.PL ; make ; make test ; make install ; ' . 'popd'; system($cmd); }

Christian Lemburg
Brainbench MVP for Perl
http://www.brainbench.com


In reply to Re: CPAN module by clemburg
in thread CPAN module by MCauth

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.