G
Gary
I am trying to write a perl cgi script using Image::Info. The problem
is
I am not getting any info from Image::Info. The hash comes back
empty.
If I reduce my script down to what is shown below the page that gets
displayed
only has the photo. If the hash wasn't empty "Good" should be
displayed above
the photo. I have never used Image::Info before. I am using the
module
description in CPAN, there are no error messages in the browser
error log and the page is being displayed. Are there any suggestions?
Gary
#!/usr/bin/perl -w
use strict;
use CGI qwstandard);
use Image::Info qw(image_info dim);
my $Photo = param('photo');
my $info = image_info("$Photo");
print header;
print start_html(-title=>'My Photos', -bgcolor=>'#FFDEAD');
if (%info){
print "Good <br> \n";
}
print "<img SRC=\"$Photo\"/>",
print end_html;
is
I am not getting any info from Image::Info. The hash comes back
empty.
If I reduce my script down to what is shown below the page that gets
displayed
only has the photo. If the hash wasn't empty "Good" should be
displayed above
the photo. I have never used Image::Info before. I am using the
module
description in CPAN, there are no error messages in the browser
error log and the page is being displayed. Are there any suggestions?
Gary
#!/usr/bin/perl -w
use strict;
use CGI qwstandard);
use Image::Info qw(image_info dim);
my $Photo = param('photo');
my $info = image_info("$Photo");
print header;
print start_html(-title=>'My Photos', -bgcolor=>'#FFDEAD');
if (%info){
print "Good <br> \n";
}
print "<img SRC=\"$Photo\"/>",
print end_html;