Imager - Re: Possible bug Report- FIlehandler problem

Posted on Tue Jan 23 01:11:39 2007 by tonyc in response to 4110 (See the whole thread of 2)
Re: Possible bug Report- FIlehandler problem

Your problem is using & on the filehandle - when I try to run your example here I get:

Not a CODE reference at test.pl line 7.

Change the file handle version of the call to read() to:

$img->read(file=>&$fh);

or even better:

$img->read(file=>$fh) or $body = "Error1 ".$img->errstr."\n";
Write a response