×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Help regarding modules

Help regarding modules

Help regarding modules

(OP)
Hey

  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.

Thanks & Regards
Srinivas Yelimeli

RE: Help regarding modules

use find `perl -e 'print "@INC"'` -name '*.pm' -print
will list all *.pm installed

Tony ... aka chgwhat
tony_b@technologist.com

When in doubt,,, Power out...

RE: Help regarding modules

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.  The module is "CPAN", and to see the documentation run perldoc ::CPAN.

To run the installation module interactively, run perl -MCPAN -e shell, then type "h" for help.

Hope this helps.




--
0 1 - Just my two bits

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close