Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Locate modules called by script

by jhourcle (Prior)
on May 10, 2005 at 15:11 UTC ( [id://455608] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/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"'
    
  2. or download this
    $ ./whichpm XML::Parser
           AutoLoader.pm : /System/Library/Perl/5.8.1/AutoLoader.pm
                 Carp.pm : /System/Library/Perl/5.8.1/Carp.pm
    ...
    warnings/register.pm : /System/Library/Perl/5.8.1/warnings/register.pm
    
    XML::Parser version : 2.34