Thanks for your solution. But, these methods won't work for me. I am working in a shared server platform and the package required for creating the perl object through "new Perl()" is not installed and not possible for installation also.
I need some htaccess way if possible. Also, I would like to know if there is some method by which PHP will run from HTML pages and also SSI will run to execute perl scripts.
Might be I am asking too much in one go