[EMAIL PROTECTED] (Roca, Ignasi) wrote:

>I'm using mod_perl-1.21 and testing GD-1.25.
>
>When calling any of the demos examples given by GD-1.25 I have the error
>
>"Can't locate object method BINMODE via package Apache".
>
>The perl scripts are as follows:
>
>#!/usr/local/bin/perl
>use GD;
>print "Content-type: image/png\n\n"
>$im = new GD::Image(100,50);
>....
>binmode STDOUT;

Change that to binmode(STDOUT) and it should work.  Since STDOUT is tied, I
think Perl is interpreting that as STDOUT->binmode.



Reply via email to