You might look into other CGI-type modules like CGI::Lite or some other lib that you find under this search. For your second question, don't forget to import modules after requiring them. Since you're doing this runtime linking stuff, be sure to use CGI::Carp in combination with fatalsToBrowser.