lib_files#
מניית קובצי הספרייה המובנים ב־pperl זה.
תקציר#
use Config;
my @names = Config::lib_files();
מה מוחזר#
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 under $Config{privlibexp}. Files installed elsewhere are not listed: walk @INC for those.
דוגמאות#
my @modules = map { s{/}{::}gr =~ s/\.pm\z//r } grep { /\.pm\z/ } Config::lib_files();
print scalar(@modules), " modules are built in\n";
הבדלים מ־upstream#
של pperl בלבד; ל־perl אין פונקציה כזו.