lib_files#
List the library files that are built into this pperl.
Synopsis#
use Config;
my @names = Config::lib_files();
What you get back#
The names of all built-in library files, sorted, in the form require takes: strict.pm, File/Temp.pm, ExtUtils/typemap. Each is a name Config::lib_file answers with a path that starts with ./pperl-native/. Files on disk are not listed: walk @INC for those.
Examples#
my @modules = map { s{/}{::}gr =~ s/\.pm\z//r } grep { /\.pm\z/ } Config::lib_files();
print scalar(@modules), " modules are built in\n";
Differences from upstream#
pperl’s own; perl has no such function.