config_vars#
Print selected configuration entries to STDOUT.
Synopsis#
use Config;
Config::config_vars(qw(archname osname ivsize));
What you get back#
Nothing. Each named key is written to STDOUT on its own line as
key='value';. Unknown keys render with an empty value.
Examples#
use Config;
Config::config_vars('archname'); # archname='x86_64-linux';
Config::config_vars('archname', 'osname'); # two lines
Edge cases#
Empty key names are skipped silently.
Output goes straight to the OS
STDOUT; redirecting withlocal *STDOUTin Perl does not affect it.
Differences from upstream#
Fully compatible with upstream.