you most likely want either
local $cfg{on_error} = "warn";
or
my %cfg=( # now my to avoid overwriting any glob +al %cfg %cfg, # inherited defaults * on_error => "warn", );
(untested)
and in the second case you won't even need inheritance because with pkg-vars you can be explicit
my %cfg=( # now my to avoid overwriting any glob +al %cfg %base::cfg, # inherited defaults * on_error => "warn", );
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
added local and my
There are more options ... but the expected behavior is not clear to me ...
To answer this properly we'd need to see an SSCCE
*) fixed error in order, swl++
In reply to Re: Inheritable configuration options.... but with default values? (updated)
by LanX
in thread Inheritable configuration options.... but with default values?
by Amblikai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |