Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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 ?

Replies are listed 'Best First'.
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/
    Just make sure that you give the full path to your module, script, file, or source, and you're good to go.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://887177]
Approved by marto
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (1)
As of 2016-12-04 10:58 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (64 votes). Check out past polls.