1Config::Extensions(3pm)Perl Programmers Reference GuideConfig::Extensions(3pm)
2
3
4

NAME

6       Config::Extensions - hash lookup of which core extensions were built.
7

SYNOPSIS

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

DESCRIPTION

15       The Config::Extensions module provides a hash %Extensions containing
16       all the core extensions that were enabled for this perl. The hash is
17       keyed by extension name, with each entry having one of 3 possible
18       values:
19
20       dynamic
21           The extension is dynamically linked
22
23       nonxs
24           The extension is pure perl, so doesn't need linking to the perl
25           executable
26
27       static
28           The extension is statically linked to the perl binary
29
30       As all values evaluate to true, a simple "if" test is good enough to
31       determine whether an extension is present.
32
33       All the data uses to generate the %Extensions hash is already present
34       in the "Config" module, but not in such a convenient format to quickly
35       reference.
36

AUTHOR

38       Nicholas Clark <nick@ccl4.org>
39
40
41
42perl v5.28.2                      2018-11-01           Config::Extensions(3pm)
Impressum