in reply to Premature End of Script Headers

What happens when you run the script from the command-line on the web server? Maybe perl isn't installed in /usr/local/bin/perl.

-sam