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 with local *STDOUT in Perl does not affect it.

Διαφορές από το upstream#

Fully compatible with upstream.