in reply to Understanding GD.pm
Have you read the existing nodes about GD on Perl Monks? You might find some useful information there.
From a quick glance at your code, I notice you don't use strict or CGI. You might find several of the Tutorials here useful, such as use CGI or die; and CGI Help Guide.
Although you check for errors when opening file.jpg, you don't check for errors elsewhere, such as when you call GD::Image->newFromJpeg(). You have no way of knowing whether these methods succeed or fail.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Understanding GD.pm
by cal (Beadle) on Oct 31, 2002 at 15:54 UTC | |
by tomhukins (Curate) on Oct 31, 2002 at 17:29 UTC |