Hey Everyone,
Thanks for the help, all of these suggestions are great!
If everyone is really curious on why I would want to do such a thing, the answer is as follows:
In my company, I maintain a web based application that is entirely done in CGI scripts. Our web app is designed to run on any platform. My company now wants to be able to provide our web app on a solid state box which we can sell to our customers. The problem with the solid state box is we have to work with a small footprint, and also limited processing capabilities.
I figured I could write a server program in perl that will accept HTTP requests, figured out the file name and just run that particular script and return the output. This will save our footprint size by not needing a web server, and processing by not loading the perl interpreter for each page (as far as I think this would, I may wrong.)
This way, we can still use our web scripts on other machines with a regular web server and not have to maintain two sets of code.
(BTW, only one person at a time will be accessing the solid state box, so a robust web server isn't really needed.)
So that's where my crazy thinking has come from!
Cheers!