|
Posted by Gunnar Hjalmarsson on April 13, 2006, 11:17 pm
Please log in for more thread options
brainbend wrote:
>
> Here is my code
> #!/usr/bin/perl
Where are
use strict;
use warnings;
and, since you run the script as a CGI script
use CGI::Carp 'fatalsToBrowser';
> sub file_size{
> my $image = new Image::Magick;
> my $full = 'the_sgm.jpg';
When running a script via CGI, don't take for granted that the working
directory is the directory where the script is located.
> $image->Read($full);
What happens if you replace that line with:
my $err = $image->Read($full) and die $err;
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
|