if you are going to use perl to check if a cookie has been set and are using apache, you can modify the httpd.conf file and set the DirectoryIndex to index.cgi or .pl or whatever you want. If you don't have access to the conf file you can more than likely set the DirectoryIndex in a .htaccess file. There are many ways you can redirect a user based on a set cookie.