i don't think the perl script will run, you would have to be including the file into .cgi or .pl script to make it run, don't think PHP can parse perl.
i would use a DHTML layer or IFRAME and specify this perl script as the content for it. if you need help let me know.