}
_debug("Removing %s from list %s", $item, join('.', @{$path}));
- @c = map { $item ne $_ } split(/\s*,\s*/, _config_get($path));
+ @c = grep { $item ne $_ } split(/\s*,\s*/, _config_get($path));
- _config_set($path, join('.', @c));
+ _config_set($path, join(',', @c));
}
#