http://www.perlmonks.org?node_id=661241


in reply to Output PHP

Maybe the PHP::Interpreter module can help you.