** The first part is the debugger text that appeared in my browser **
#!/usr/bin/perl # # CalendarScript Debugger
If you are seing "#!/usr/bin/perl" in your browser, it means your server doesn't know you are trying to run a script and it is just displaying exactly what was in that file rather than executing it.
You're going to have to check your host's CGI FAQ for how to go about running Perl scripts (if it is even allowed where you're hosted). There's little anyone here is going to be able to do for you.
Dan O.
------------------