Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Config::Extensions

Name Config::Extensions
Version 0.01
Located at /usr/share/perl5
File /usr/share/perl5/Config/Extensions.pm
Is Core Yes
Search CPAN for this module Config::Extensions
Documentation Config::Extensions
Module Details Config::Extensions

SYNOPSIS

    use Config::Extensions '%Extensions';
    if ($Extensions{PerlIO::via}) {
        # This perl has PerlIO::via built
    }


DESCRIPTION

The Config::Extensions module provides a hash %Extensions containing all the core extensions that were enabled for this perl. The hash is keyed by extension name, with each entry having one of 3 possible values:

dynamic
The extension is dynamically linked

nonxs
The extension is pure perl, so doesn't need linking to the perl executable

static
The extension is statically linked to the perl binary

As all values evaluate to true, a simple if test is good enough to determine whether an extension is present.

All the data uses to generate the %Extensions hash is already present in the Config module, but not in such a convenient format to quickly reference.


AUTHOR

Nicholas Clark <nick@ccl4.org>

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024