in reply to Re: Execute perl script from HTML
in thread Execute perl script from HTML

That is, your script needs to return a header like "Content-Type: image/jpg" or "Content-Type: image/gif" instead of "Content-Type: text/html". You can do this pretty easily with CGI.pm in the header command.