I need to figure out where all these modules reside to copy to the Linux system

I use the following to get info about where a module is, what other modules it ends up loading, and its version:

#!/bin/sh perl "-M$1" -e 'print map { sprintf( "%20s : %s\n", $_, $INC{$_} ) } s +ort keys %INC; print "\n'$1' version : $'$1'::VERSION\n\n"'

That being said, it's very important to look at where it is, before you decide to up and move it to a different architecture or OS. Take the following:

$ ./whichpm XML::Parser AutoLoader.pm : /System/Library/Perl/5.8.1/AutoLoader.pm Carp.pm : /System/Library/Perl/5.8.1/Carp.pm Config.pm : /System/Library/Perl/5.8.1/darwin-thread-multi- +2level/Config.pm Cwd.pm : /System/Library/Perl/5.8.1/darwin-thread-multi- +2level/Cwd.pm DynaLoader.pm : /System/Library/Perl/5.8.1/darwin-thread-multi- +2level/DynaLoader.pm Exporter.pm : /System/Library/Perl/5.8.1/Exporter.pm File/Spec.pm : /System/Library/Perl/5.8.1/File/Spec.pm File/Spec/Unix.pm : /System/Library/Perl/5.8.1/File/Spec/Unix.pm XML/Parser.pm : /Library/Perl/5.8.1/darwin-thread-multi-2level/ +XML/Parser.pm XML/Parser/Expat.pm : /Library/Perl/5.8.1/darwin-thread-multi-2level/ +XML/Parser/Expat.pm XSLoader.pm : /System/Library/Perl/5.8.1/darwin-thread-multi- +2level/XSLoader.pm base.pm : /System/Library/Perl/5.8.1/base.pm overload.pm : /System/Library/Perl/5.8.1/overload.pm strict.pm : /System/Library/Perl/5.8.1/strict.pm vars.pm : /System/Library/Perl/5.8.1/vars.pm warnings.pm : /System/Library/Perl/5.8.1/warnings.pm warnings/register.pm : /System/Library/Perl/5.8.1/warnings/register.pm XML::Parser version : 2.34

Any of the components with the architecture in their name (in this example, 'darwin-thread-multi-2level', have compiled components, and cannot just be picked up and moved to the new server.


In reply to Re: Locate modules called by script by jhourcle
in thread Locate modules called by script by bwelch

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.