in reply to Re: Re: Understanding GD.pm
in thread Understanding GD.pm

Ouch. That's a tough case to be in.

If the code you posted was the whole thing, may I suggest a few additions? If you add these lines to the end:
close FILE; print "<img src = 'test.jpg'></body></html>\n\n";
and this to the beginning, after the header:
print "<html><head><title>Test page</title></html><body>\n";
That will make your output an actual HTML page, and make your Perl just a tough more correct. I don't honestly think that's your problem, but it wouldn't hurt to make sure that it isn't.
--

Love justice; desire mercy.

Replies are listed 'Best First'.
Re: Re: Re: Re: Understanding GD.pm
by cal (Beadle) on Oct 31, 2002 at 16:34 UTC
    Thanks , You know I did not even notice there was no  close FILE;at the end of the script. Thanks for pointing that out.
    Well is what I get is a blank page but it is the test page. HTML produced:<html><head><title>Test page</title></head><body> I am trying some more print statements. I will update soon. Thanks again
Re: Re: Re: Re: Understanding GD.pm
by cal (Beadle) on Oct 31, 2002 at 16:42 UTC
    Thanks for your help,

    I ran some print statements and the buck stops here:

    my $srcimage = GD::Image->newFromJpeg('churchmiddle.jpg');

    I guess I am wondering now if the script is comunicating with the GD Module.
Re: Re: Re: Re: Understanding GD.pm
by cal (Beadle) on Oct 31, 2002 at 16:59 UTC
    Thanks for your help,

    I ran some print statements and the buck stops here:

    my $srcimage = GD::Image->newFromJpeg('churchmiddle.jpg');

    I guess I am wondering now if the script is comunicating with the GD Module.