The cgi redirection script should work fine

At least Perl 5.28.1 (from Debian 10 - released earlier this year) found no issues:
Code
$ perl -c ultimatebb.cgi
ultimatebb.cgi syntax OK