config_sh#
Return the full configuration as one shell-assignment block.
Σύνοψη#
use Config;
my $sh = Config::config_sh();
Τι επιστρέφεται#
A single scalar containing one line per entry in the form key='value', newline-terminated. The output is stable across calls and suitable for feeding into a shell eval or a line-based parser.
Παραδείγματα#
use Config;
for my $line (split /^/, Config::config_sh()) {
print $line if $line =~ /^archname=/;
}
Οριακές περιπτώσεις#
Entries whose value is undef render as
key='', matching how the tied hash reports them viaEXISTS(true) andFETCH(undef).
Διαφορές από το upstream#
Fully compatible with upstream.