$image->string($font,2,10,'hello world',$fontcolor); my $png = $image->png or die $!;
err, you mean
or die "$!" not or die $!;
Why? Its redundant and ugly to double quote a string that is a single variable.
the quotes are there to prompt you to include a sensible error message there, in addition to the error, if you like. :P
As for the content type header, it may display in your browser but you should put a content type header so others browsers wonn't have to guess and there fore it will work for everyone :)
I wasn't embedding it in a webpage like so:
<img src="http://localhost/blah/cgi-bin/hello.cgi">
I was literally calling it from the browser's URL line as a file, directly, in which case the content-type header was interfering with the browser's ability to display the image (which would have been obvious had you tried it, as I suggested.)
-- Scott R. Godin Laughing Dragon Services www.webdragon.net
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>