The error I am getting is
Premature end of script headers: /var/chroot/home/content/d/x/c/dxcox/html/test.pl
test.pl is not part of the CalendarScript distribution AFAIK so I have no idea what it does or is suppose to do.
That error message is also no help as it also is just saying the script didn't run... for whatever reason. If no more detailed error message is provided in the error logs someone will need to try running the script from the command line (telnet, SSH, etc.) to see what error(s) Perl reports. If you don't have access to those functions you may have to contact your host's support and ask them to do it for you.
If you can provide a more detailed error message
about a CalendarScript file that won't run, we'll try to make suggestions as to what might be the cause.
JMO
Dan O.