@c = ();
}
- _debug("Adding %s to list %s", $item, join(".", $path));
+ _debug("Adding %s to list %s", $item, join(".", @{$path}));
unless(grep { $_ eq $item } @c) {
push(@c, $item);
};
return;
}
- _debug("Removing %s from list %s", $item, join('.', $path));
+ _debug("Removing %s from list %s", $item, join('.', @{$path}));
@c = map { $item ne $_ } split(/\s*,\s*/, _config_get($path));
_config_set($path, join('.', @c));
return 0;
}
- _debug("Checking for %s in list %s", $item, join('.', $path));
+ _debug("Checking for %s in list %s", $item, join('.', @{$path}));
return grep { $item eq $_ } split(/\s*,\s*/, _config_get($path));
}
sub _config_list_set {
my $path = shift;
- _debug("Replacing %s with (%s)", join('.', $path), join(",", @_));
+ _debug("Replacing %s with (%s)", join('.', @{$path}), join(",", @_));
_config_set($path, join(',', @_));
}