I'm running the script on a free server supporting perl-cgi scripts ( 000webhost.com)
Is the code in the html page correct ?
First, you cannot embed Perl code into html and expect it to run as CGI. They way you are doing it is not standard Perl but something along the lines of what Kevin mentioned.
What you want to do is read a
tutorial on CGI to get you going. Perl is always a script that runs either seperate from the html or that produces the html (in the case of cgi.). I haven't seen the example you gave before and would not know anything about "perlscript". It sounds like something that Microsoft came up with. Either way, read the tutorial.
Regards,
Jeff