Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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
[ambrus]: choroba: what type?

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2017-09-22 15:26 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (264 votes). Check out past polls.