Are you running it as a CGI script, or from the console? If running as a CGI script, then you need to output the content type header prior to anything else, otherwise you'll get an internal server error.

Those are shell commands that assign environment variables. If the server admins setup you account correctly, then perl will import those vars into the %ENV hash without you needing to do anything. If they didn't set it up correctly, you'll need to manually assign those items in the %ENV hash.