i honestly dont know the answer.
i have a few suggestions though.
could it be the extension of the file? like file.pl file.cgi
maybe chaning it to file.php ?
another thing that popped in my head was using eval.
but i believe there is an eval for perl too. so that just might confuse things.
other than that, it 'seems' that it should work. too bad it doesn't 🙁