Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help regarding modules

Status
Not open for further replies.

yelimeli

Programmer
Jun 6, 2000
10
US
Hey<br><br>&nbsp;&nbsp;Is there any way i can find all the modules installed in local perl directory. Actually i'm writing a utility to download a module and install it, but i dont want to install the modules already present, how can i check the modules existing in my local perl directory ? is there any reserved array or variable for this ? Please help me ASAP. Thanks for your time. <br><br>Thanks & Regards<br>Srinivas Yelimeli
 
use find `perl -e 'print &quot;@INC&quot;'` -name '*.pm' -print<br>will list all *.pm installed <p> Tony ... aka chgwhat<br><a href=mailto:tony_b@technologist.com>tony_b@technologist.com</a><br><a href= > </a><br>When in doubt,,, Power out...
 
Save yourself re-inventing the wheel - there's already a module that will do this for you, and it's included in the recent releases of perl.&nbsp;&nbsp;The module is &quot;CPAN&quot;, and to see the documentation run <FONT FACE=monospace>perldoc ::CPAN</font>.<br><br>To run the installation module interactively, run <FONT FACE=monospace>perl -MCPAN -e shell</font>, then type &quot;h&quot; for help.<br><br>Hope this helps. <p> <br><a href=mailto: > </a><br><a href= > </a><br>--<br>
0 1 - Just my two bits
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top