Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

( [id://3333] : superdoc . print w/replies, xml ) Need Help??
I've just re-invented a wheel and discovered a way to say which modules uses given one, and from which location they come.
Quite simple and usefull (for me at least).
for Win32:
perl -Mvars -we "print join qq/\n/,map {qq/$_=>$INC{$_}/} sort keys %I +NC"
for other systems (including Cygwin):
perl -Mvars -we 'print join qq/\n/,map {qq/$_=>$INC{$_}/} sort keys %I +NC'
Sample output will be
Carp.pm=>D:/perl561/lib/Carp.pm Exporter.pm=>D:/perl561/lib/Exporter.pm strict.pm=>D:/perl561/lib/strict.pm vars.pm=>D:/perl561/lib/vars.pm warnings.pm=>D:/perl561/lib/warnings.pm warnings/register.pm=>D:/perl561/lib/warnings/register.pm
If other module needed, specify, for example, other -M option

In reply to look which and from where modules were included by svad

Title:
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.