App-Sqitch
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
t/lib/TestConfig.pm view on Meta::CPAN
# key is deleted. Arrays are set as multiple values for the key. Hashes have
# each of their keys appended as "$section.$name.$key", with the values
# assigned as-is. Existing keys will be replaced with the new values.
#
# my $config->update(
# 'core.engine' => 'sqlite',
# 'add.all' => 1,
# 'deploy.variables' => { _prefix => 'test_', user => 'bob' }
# 'foo.bar' => [qw(one two three)],
# );
sub update {
my $self = shift;
my %p = @_ or return;
$self->data({}) unless $self->is_loaded;
# Set a unique origin to be sure to override any previous values for each key.
my @args = (origin => ('update_' . ++$self->{__update}));
while (my ($k, $v) = each %p) {
my $ref = ref $v;
if ($ref eq '') {
if (defined $v) {
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.471 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )