in reply to Include js files in Perl-CGI

The perl script is doing what is supposed to do. What you are encountering is a problem with the way you are building your web page. I would suggest that you look at use Firefox (the web browser) and the Web Developer plugin. That would help you identify problems with your HTML.