Crypt-HSXKPasswd
view release on metacpan or search on metacpan
lib/Crypt/HSXKPasswd.pm view on Meta::CPAN
#####-SUB-######################################################################
# Type : INSTANCE
# Purpose : Alter the running config with new values.
# Returns : A reference to the instalce itself to enable function chaining.
# Arguments : 1. a hashref containing config keys and values.
# Throws : Croaks on invalid invocaiton, invalid args, and, if the resulting
# new config is in some way invalid.
# Notes : Invalid keys in the new keys hashref will be silently ignored.
# See Also :
sub update_config{
my @args = @_;
my $self = shift @args;
_force_instance($self);
# validate args
state $args_check = compile(ConfigOverride);
my ($new_keys) = $args_check->(@args);
# clone the current config as a starting point for the new config
my $new_config = $self->_clone_config();
( run in 0.553 second using v1.01-cache-2.11-cpan-4d4bc49f3ae )