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

Build in modules in perl

by vetrivel (Sexton)
on Feb 09, 2011 at 11:35 UTC ( #887177=perlquestion: print w/ replies, xml ) Need Help??
vetrivel has asked for the wisdom of the Perl Monks concerning the following question:

How to see all the included module names , in a current package ?

Comment on Build in modules in perl
Re: Build in modules in perl
by Anonymous Monk on Feb 09, 2011 at 11:56 UTC
    How to see all the included module names , in a current package?

    Read Simple Module Tutorial, to learn the perl terminology. Then use Module::Info to get the info you want.

      Use the following script it will display all the modules you have installed.

      perl -MFile::Find=find -MFile::Spec::Functions -Tlwe \ 'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => +1 }, @INC'
        That has nothing to do with the question, stay on topic
Re: Build in modules in perl
by Khen1950fx (Canon) on Feb 09, 2011 at 13:24 UTC
    To get a quick overview of the modules used by the current package, try Module::Used which has a bin script modules-used included with it. Simply do for example CGI:
    modules-used source-file /usr/lib/perl5/5.8.8/CGI.pm
    Just make sure that you give the full path to your module, script, file, or source, and you're good to go.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://887177]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2015-07-03 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (56 votes), past polls