you might want to look into indigo perl, it's apache with perl and allows very easy installation of perl modules, and you run it locally, granted you have to come through a browser, so i know this isn't the answer to your question just some food for thought
http://www.indigostar.com/indigoperl.htm