Something I have used before, (though not on aix systems, so may need adjustment,) is to use Module::ScanDeps to dump a list of the used modules to a file from the development computer, then iterate over the list, and use the CPAN module to install any unfound modules.

use Module::ScanDeps; my $perl_script = 'whatever.pl'; my $hash_ref = scan_deps($perl_script); for (keys %$hash_ref){ print $_,"\n" if ( $$hash_ref{$_}{'file'} =~ m#/site/# and $_ =~ m +#\.pm# ); } # Only capture the name if it IS a module (.pm) and it # isn't in core, (path includes /site/). You may need # to modify the filter if your modules are in non-standard # places.

Then take the list to the different computer and run it through this script:

use CPAN; my @modules = # module list from the previous script for $mod (@modules){ my $obj = CPAN::Shell->expand('Module',$mod); $obj->install; }

In reply to Re: installing many modules on different machines by thundergnat
in thread installing many modules on different machines by Anonymous Monk

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.