Re: Can't locate object method "BINMODE" via package "Apache"

2000-04-12 Thread Ken Williams

[EMAIL PROTECTED] (Doug MacEachern) wrote:
>On Tue, 11 Apr 2000, Ken Williams wrote:
>> Change that to binmode(STDOUT) and it should work.  Since STDOUT is tied, I
>> think Perl is interpreting that as STDOUT->binmode.
>
>that's not the problem, see my reply to Roca.

Oops, I should have looked before I leaped.  Duh.


  ------
  Ken Williams Last Bastion of Euclidity
  [EMAIL PROTECTED]The Math Forum





Re: Can't locate object method "BINMODE" via package "Apache"

2000-04-11 Thread Doug MacEachern

On Tue, 11 Apr 2000, Ken Williams wrote:

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

that's not the problem, see my reply to Roca.




Re: Can't locate object method "BINMODE" via package "Apache"

2000-04-11 Thread Doug MacEachern

On Tue, 11 Apr 2000, 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 mod_perl cvs snapshot defines a BINMODE stub (5.6.0 added this tied
filehandle method). you don't need that to cure, remove the call to
binmode or add this code to a startup file:

sub Apache::BINMODE {}





Re: Can't locate object method "BINMODE" via package "Apache"

2000-04-11 Thread Ken Williams

[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.






Re: Can't locate object method "BINMODE" via package "Apache"

2000-04-11 Thread Matt Sergeant

On Tue, 11 Apr 2000, 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;
> # print the image to stdout
> print $im->png;
> 
> 
> Is somebody knowing the reason of the error ? 

Yep, STDOUT is tied to the Apache class so that it outputs via the Apache
API. There should be no need to binmode it.

-- 


Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org http://xml.sergeant.org




Can't locate object method "BINMODE" via package "Apache"

2000-04-11 Thread Roca, Ignasi

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;
# print the image to stdout
print $im->png;


Is somebody knowing the reason of the error ? 

-- Ignasi Roca