in reply to Why doesn't my browser open perl scripts correctly?
Whatever web server you're using isn't sending out the appropriate content type (text/html, presumably). You can either configure the webserver to set the content type for whatever extension your file is to text/html, or have the script send out a "content-type: text/html\n\n" line before any html code.