-
Recent Posts
Recent Comments
Categories
Tags
backpacking beer boston california cartography colors computers conspiracy consumer coverup cron database dd-wrt fibs finance fun functional-programming google government hiking homebrewing hugin jvm library maps netflix network news nuclear-power osx panoramic performance photography programming python quality question-answer recipe sanfrancsico sbt scala scalaz traffic-shaping type-erasure web
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.