in reply to How to save an image (using GD) to a file

Why don't you use the CGI solution? With suitable parameters, you can have a very generic image generator with that.

As for your problem, try this:

open (TEST,">$image_test") || die;

See? There is a ">" in front of the filename.

And lastly, you will want to get a copy of Programming Web Graphics with Perl and Gnu Software.

Update: tilly reminded me that the die in the code I gave is "uninformative". Well, he is right, of course. You should use:

open(TEST,">$image_test") || die "Error: no open (write mode) for '$image_test': $!";

Christian Lemburg
Brainbench MVP for Perl
http://www.brainbench.com

Replies are listed 'Best First'.
Re: Re: How to save an image (using GD) to a file
by belize (Deacon) on Nov 28, 2000 at 00:13 UTC
    Thanks Christian. The ">" was the exact problem. The image now displays. I will modify the:
    || die
    to reflect an error message. Thanks again.