Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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 : /System/Library/Perl/5.8.1/ : /System/Library/Perl/5.8.1/ : /System/Library/Perl/5.8.1/darwin-thread-multi- +2level/ : /System/Library/Perl/5.8.1/darwin-thread-multi- +2level/ : /System/Library/Perl/5.8.1/darwin-thread-multi- +2level/ : /System/Library/Perl/5.8.1/ File/ : /System/Library/Perl/5.8.1/File/ File/Spec/ : /System/Library/Perl/5.8.1/File/Spec/ XML/ : /Library/Perl/5.8.1/darwin-thread-multi-2level/ +XML/ XML/Parser/ : /Library/Perl/5.8.1/darwin-thread-multi-2level/ +XML/Parser/ : /System/Library/Perl/5.8.1/darwin-thread-multi- +2level/ : /System/Library/Perl/5.8.1/ : /System/Library/Perl/5.8.1/ : /System/Library/Perl/5.8.1/ : /System/Library/Perl/5.8.1/ : /System/Library/Perl/5.8.1/ warnings/ : /System/Library/Perl/5.8.1/warnings/ 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

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-14 02:14 GMT
Find Nodes?
    Voting Booth?

    No recent polls found