-
Recent Posts
Recent Comments
Categories
Tags
apache beer beernutz bigbrother boston bottle buttons cartography computers conditioning css database deadlock draft economics firebug freedom gmail hexadecimal homebrewing html java javascript maps mbta mustache outlook performance podcasts politics productivity programming quality random recipe scala sea stackoverflow subway surveillance taxes tricks tv web wedding
Module Test CGI script for Perl
It can sometimes be difficult to track down problems due to missing dependencies when deploying a CGI application to a shared host, especially when they don’t give you shell access or let you view the web server error logs.
So, I wrote this small CGI script to check for dependencies and let you know when certain modules are not present or are out of date. I bundle this will all of my Perl CGI apps, so I can tell right away if something is missing. I will develop the application locally, of course, but I will check the output of this script whenever I deploy to a new environment, whether it is a test server or production.
[ad]
This script is designed to have as few dependencies of its own as possible, so all it requires is CGI.pm. I think it is a pretty safe bet that any environment that is meant to run Perl CGI scripts will have CGI.pm.