in reply to PerlMagick "file not found" issues

I can't see anything immediately wrong with the line in question. Perhaps you could try the following

use CGI; use strict; my $cgi = new CGI; print $cgi->header; print $cgi->start_html; open (FH,"<full path of your file>") or print "Can't :$!"; close FH; print $cgi->end_html;

or something similar. That should narrow down whether you have a code problem (which looks unlikely) or a problem actually reading the file, for whatever (possibly apache related) reason.

g0n, backpropagated monk

Replies are listed 'Best First'.
Re^2: PerlMagick "file not found" issues
by darkphorm (Beadle) on Mar 17, 2005 at 16:43 UTC
    Ahhh, but that's the problem. I can in fact, read the file.

    This is the line it indicates it is croaking at.
    $pictures[$picture_indx] = $pictures[$picture_count]->Read(file=>\*IMA +GE_IN) or die("Error reading file $filepath $!");
    So that means the OPEN command has already succeeded... imagemagick has no reason to screw up...
    I'm thinking perhaps PM is just messed on my box, though it's a debian/stable stock version. The images aren't corrupt either, as they show fine from my browser when viewed from outside a script. The error line it mentions is actually this: