I just installed Centos 8 on my server to migrate everything from Centos 7 to Centos 8. I make use a many custom written Perl CGI scripts that is used with the web server (Apache). These scripts have many .pm modules that they use. To include the modules from the .cgi script files 'use' is being used. For example:
/cgi-bin/somescript.cgi
#!/usr/bin/perl
use some_module;
In the example above some_module.pm is located inside /cgi-bin but when I try to run http://192.168.0.1/cgi-bin/somescript.cgi the following error occurs: Can't locate some_module.pm in @INC
This used to work flawlessly in Centos 7 but not in Centos 8. How would I go about to get Perl to look inside the current directory for the modules like it used to in earlier versions of Centos when the .cgi script files are executed?