in reply to CGI package recommendation

I can recommend Mojolicious (which can be run as a CGI script, although it's not the most efficient way to run a Mojo app). Start with Mojolicious::Guides::Tutorial. Otherwise, see UP-TO-DATE Comparison of CGI Alternatives.