Re: Get a list of all pragmas
- From: "tuser" <tuser3@xxxxxxxxx>
- Date: 30 Aug 2006 07:43:18 -0700
himanshu.garg@xxxxxxxxx wrote:
tuser wrote:
I am running perl 5.8.7 under Ubuntu Linux 6.06 LTS.
Looking at "perldoc perltoc", I can see the list of pragmas in my
version of perl.
Then I tried to get the list of all pragmas from a perl program:
=================
use ExtUtils::Installed;
$, = "\n";
print ExtUtils::Installed->new()->modules(), "";
=================
but that did only give me the manually installed modules from CPAN, not
even the pre-installed standard modules, let alone the pragmas !
How can I get this list of pragmas programmatically from within a perl
program (other than scanning the "perldoc perltoc" output) ?
You could try Module::CoreList module available from CPAN for this.
See Also:-
perldoc -q installed
Thanks, Module::CoreList will serve me as a test to see whether all
modules that should be available are installed on my system.
.
- References:
- Get a list of all pragmas
- From: tuser
- Re: Get a list of all pragmas
- From: himanshu . garg
- Get a list of all pragmas
- Prev by Date: Re: Get a list of all pragmas
- Next by Date: Re: Allowing threading with CGI
- Previous by thread: Re: Get a list of all pragmas
- Next by thread: Net-SNMP, community !~ public, JBOSS-4.0.4.GA
- Index(es):
Relevant Pages
|