execute script via perl interpreter, and correct headers for application/xml