Open martin21 opened 6 years ago
Experimental push on scalar is now forbidden at ...
=> this breaks the idea of extending the main config w/ something like
push($nrconf{blacklist}, qr(^/opt/.*/java$));
no no, perl is not my friend, it is my enemy :-/ Using some config syntax with a real overlay and a more human syntax (yaml, ini, ...) would help humans ...
This works for me: push @{ $nrconf{blacklist} }, qr(^/usr/bin/conmon$);
Thank your for the hint.
I figured it out myself meanwhile by reading enough of chapter 9.4 Hash of Hashes in Programming Perl book, but for those who do not program in Perl it would be helpful to be able to read in the documentation how they can do that. I think it is quite a common configuration change.
Example that works for me: