The "premature end of script headers" is because you're not sending any response from the script if you don't encounter an error - all the output is to some files. So just print a response (i.e. some headers and content) to STDOUT.
update: you'll also want to read Far More Than Everything You've Ever Wanted to Know about Prototypes in Perl, or just forget about them and don't use them. Your current use of prototypes is only going to bite you at some point.
In reply to Re^3: GD::Image trueColor() hangup...
by Joost
in thread GD::Image trueColor() hangup...
by kalchas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |