in reply to Linux - Perl problem

You don't have a web server installed, or, you don't have the server configured to execute Perl programs.

As far as Netscape knows, a Perl program is just a text file, so it treats it as a text file. It's the web server that actually executes it, returning HTML, text, an image, or some other kind of file to the web browser.