in reply to Re: CGI: Premature end of script headers
in thread CGI: Premature end of script headers

Really know nothing about Solaris but try adding "-w" to the first line, as in:
#!/usr/bin/perl -w
It sometimes helps when I shift between windows and linux OSs.