sorry... i dont think i was clear.......
I dont want to execute a perl script, i actually wanted to run perl commands within a PHP script.
Im trying to write a script to automatically chmod files, but PHP will only do it if the files are chowned to apache.apache
this is obviously no good for people that dont have root access..... however i have a perl script that does it regardless of ownership..... but some server require perl to be run within cgi-bin, but i want to keep all the files together,
I hope that explains it a bit better.