I had to quote the first parameter before my perl and bash scripts worked.

ScriptAlias "/cgi-bin/" "/srv/httpd/cgi-bin/"

Please verify that the original scriptalias still works:

ScriptAlias /cgi-bin/ "/srv/httpd/cgi-bin/"

Please refer to https://httpd.apache.org/docs/2.4/howto/cgi.html

Apache v2.4.39
27Jun2019