in reply to
How to get over 'premature end of script headers' in Apache?
Another possibility is to make sure the shebang line isn't indented.
Comment on
Re: How to get over 'premature end of script headers' in Apache?
In Section
Seekers of Perl Wisdom