Thanks and I am still reading.... I can feel something and it's insightful indeed. Would be glad to hear more from your advise though :
1. Do you think rather send out the data to an external script, import the external code into the server and run it is a better approach (eg. require "script.pl") ?
2. Can you tell if when a web server claims it supports a certain language, it does have to implement something ( not just command line ) to prepare the environment ( meta ) variables for that particular language ?