Ray Zimmerman wrote:At 11:12 AM -0700 10/20/03, Stas Bekman wrote:Are you sure you are trying it under running mod_perl, and not mod_cgi?
No ... I haven't gotten that far ... I'm just trying to run a script from the command line. The following works just fine on my Linux box ...
Hehe, that's your problem. Apache:: modules don't work from the command line, since the modperl/apache runtime environment is not loaded.
I'm afraid I don't have the expertise to debug the byte order issues, etc. but I wanted to be sure that I'm trying to do something reasonable. Your comments seem to imply that Apache::Scoreboard is only meant to be used within a mod_perl environment, but the POD docs say ...
SYNOPSIS use Apache::Scoreboard ();
#inside httpd my $image = Apache::Scoreboard->image;
#outside httpd my $image = Apache::Scoreboard->fetch("http://localhost/scoreboard");
... which to me indicates that it is intended to work from the command-line as well, like the little script I posted.
Just trying to sort out whether this is a bug or whether I'm expecting it do something it was not intended to do.
BTW, who maintains Apache::Scoreboard ... Doug?
-- Ray Zimmerman / e-mail: [EMAIL PROTECTED] / 428-B Phillips Hall Sr Research / phone: (607) 255-9645 / Cornell University Associate / FAX: (815) 377-3932 / Ithaca, NY 14853