Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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
ExReg takes a cookie from the platter on the sideboard.
ExReg gets a tall glass of milk to wash down the cookies.

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2017-04-27 01:05 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (497 votes). Check out past polls.