config_vars#
Print selected configuration entries to STDOUT.
תקציר#
use Config;
Config::config_vars(qw(archname osname ivsize));
מה מוחזר#
Nothing. Each named key is written to STDOUT on its own line as key='value';. Unknown keys render with an empty value.
דוגמאות#
use Config;
Config::config_vars('archname'); # archname='x86_64-linux';
Config::config_vars('archname', 'osname'); # two lines
מקרי קצה#
Empty key names are skipped silently.
Output goes straight to the OS
STDOUT; redirecting withlocal *STDOUTin Perl does not affect it.
הבדלים מן ה-upstream#
Fully compatible with upstream.