They already allow you to run arbitrary programs, so I'm not sure what you have in mind.
I really have no experience with web servers, so I may be talking nonsense, but if I owned one, I believe I would give no permissions for outsiders to write in any directories under perl's. Isn't that the case?