Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Config

Native Rust implementation built into the interpreter. Runtime: P5. See original documentation for the full Perl reference.

Functions

clear

croak “Config is read-only”.

config_sh

return all config as shell variable assignments.

Uses core::config_sh_bytes() for formatting.

config_vars

print config values in key=‘value’; format.

Uses core::format_config_var() for formatting.

delete

croak “Config is read-only”.

exists

tied hash exists check.

fetch

tied hash fetch. Look up $key in %Config::Config.

firstkey

reset iterator and return first key.

import

Export %Config into the caller’s namespace.

The hash is populated by p5_register_config_hash() at require-time.

myconfig

return a summary string of the config.

Uses core::MYCONFIG_SUMMARY for the content.

nextkey

return next key from iterator.

store

croak “Config is read-only”.