AW: SV: Moving STDOUT to a new handle?

2004-11-09 Thread Denis Banovic
Hi! Try Filter::Handle It redirects the STDOUT and overrides the print function You'll have to change the sub PRINT function to make it work with perl 5.8 sub PRINT { my $self = shift; my $fh = *{ $self->{fh} }; #print $fh $self->{output}->(@_); ### won't work anymore my $st

Compiling Apache-Scoreboard-2.01

2004-11-09 Thread Maxim Nechaev
I have a problem to make Apache-Scoreboard-2.01 with error message: Error: 'APR::OS::Thread' not in typemap in Scoreboard.xs, line 624 Please specify prototyping behavior for Scoreboard.xs (see perlxs manual) make: *** [Scoreboard.c] Error 1 Software: slackware-8.0 apache-2.0.52 mod_perl-1.99_17

Re: Compiling Apache-Scoreboard-2.01

2004-11-09 Thread Stas Bekman
Maxim Nechaev wrote: I have a problem to make Apache-Scoreboard-2.01 with error message: Error: 'APR::OS::Thread' not in typemap in Scoreboard.xs, line 624 Please specify prototyping behavior for Scoreboard.xs (see perlxs manual) make: *** [Scoreboard.c] Error 1 Software: slackware-8.0 apache-2.0.5

Apache::Cookie

2004-11-09 Thread Arshavir Grigorian
Hi, I am using Apache::Cookie (libapreq2-2.04-dev) to generate cookies. However, for some reason, the bake() method does not work. # WORKS my $cookie = $ticket->cookie()->as_string(); $r->err_headers_out->add('Set-Cookie' => $cookie); # DOES NOT WORK $ticket->cookie()->bake();

Re[2]: Compiling Apache-Scoreboard-2.01

2004-11-09 Thread Maxim Nechaev
SB> Yup, it's outdated. I'll fix and upload a new release a bit later. Apache-Scoreboard-2.01 is a latest available version via CPAN. Where get new release? Maxim Nechaev

Re: Compiling Apache-Scoreboard-2.01

2004-11-09 Thread Stas Bekman
Maxim Nechaev wrote: SB> Yup, it's outdated. I'll fix and upload a new release a bit later. Apache-Scoreboard-2.01 is a latest available version via CPAN. Where get new release? I'll upload one soon. Meanwhile you can apply this patch to version 2.01. Index: Scoreboard.xs ==

ANNOUNCE: Bricolage 1.8.3

2004-11-09 Thread David Wheeler
The Bricolage development team is pleased to announce the release of Bricolage 1.8.3. This maintenance release addresses quite a large number of issues in Bricolage 1.8.2. The most important changes were to enhance Unicode support in Bricolage. Bricolage now internally handles

[ANNOUNCE] Apache-Scoreboard 2.02

2004-11-09 Thread Stas Bekman
The uploaded file Apache-Scoreboard-2.02.tar.gz has entered CPAN as file: $CPAN/authors/id/S/ST/STAS/Apache-Scoreboard-2.02.tar.gz size: 17084 bytes md5: 461284a6cf13cf20146b6e8d7f766615 Changes since 2.01 - sync with mp2 API changed (s/APR::OS::Thread/U32/) and require 1.99_17 where t

[ANNOUNCE] Apache::AuthCookie 3.06

2004-11-09 Thread Michael Schout
The uploaded file Apache-AuthCookie-3.06.tar.gz has entered CPAN as file: $CPAN/authors/id/M/MS/MSCHOUT/Apache-AuthCookie-3.06.tar.gz size: 32510 bytes md5: 8d64e84fb8accd870b058e6b7b1634f9 Changes: ** BUG FIX: AuthNameSatisfy (Any|All) directives were broken. AuthCookie was

[ANNOUNCE] Apache-Test-1.16

2004-11-09 Thread Geoffrey Young
The URL http://perl.apache.org/~geoff/Apache-Test-1.16.tar.gz has entered CPAN as file: $CPAN/authors/id/G/GE/GEOFF/Apache-Test-1.16.tar.gz size: 137425 bytes md5: f1d2d2321af6d5f2080e0a56a58b6cec Changes since 1.15: launder the require()d custom config filename to make -T happy [T

Re[2]: Compiling Apache-Scoreboard-2.01

2004-11-09 Thread Maxim Nechaev
SB> I'll upload one soon. Meanwhile you can apply this patch to version 2.01. SB> ... Thanks, this work.

Closing DB handler with PerlCleanupHandler

2004-11-09 Thread Batara Kesuma
Hi, How can I pass $dbh value from PerlResponseHandler to PerlCleanupHandler to be disconnected? My scripts are running in ModPerl::Registry, and I don't want to do $dbh->disconnect() at the end of every scripts. So I try to write a module in PerlCleanupHandler to clean up the DB handler at the en

Re: Closing DB handler with PerlCleanupHandler

2004-11-09 Thread Stas Bekman
Batara Kesuma wrote: Hi, How can I pass $dbh value from PerlResponseHandler to PerlCleanupHandler to be disconnected? My scripts are running in ModPerl::Registry, and I don't want to do $dbh->disconnect() at the end of every scripts. So I try to write a module in PerlCleanupHandler to clean up the

[mp2] modperl not reloading files when changed

2004-11-09 Thread Carl Brewer
Hello, I've got a couple of files, a script and a library, and I'm not sure of what I'm doing wrong in terms of telling modperl to watch them for changes. I have the following in httpd.conf : for my virtual host : PerlModule Apache2 PerlRequire "/home/benfab/lib/startup.pl" PerlModule A

Re: [mp2] modperl not reloading files when changed

2004-11-09 Thread Stas Bekman
Carl Brewer wrote: Hello, I've got a couple of files, a script and a library, and I'm not sure of what I'm doing wrong in terms of telling modperl to watch them for changes. I have the following in httpd.conf : for my virtual host : PerlModule Apache2 PerlRequire "/home/benfab/lib/startup.p

Re: Closing DB handler with PerlCleanupHandler

2004-11-09 Thread Batara Kesuma
Hi Stas, > 1) use Apache::DBI > > 2) if not, refer to: > http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlCleanupHandler > http://perl.apache.org/docs/2.0/user/coding/coding.html#Getting_the_C__r__Object Thank you for the answer. I tried to use Apache::DBI with dbi_connect_method =>

Re: Closing DB handler with PerlCleanupHandler

2004-11-09 Thread Stas Bekman
Batara Kesuma wrote: Hi Stas, 1) use Apache::DBI 2) if not, refer to: http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlCleanupHandler http://perl.apache.org/docs/2.0/user/coding/coding.html#Getting_the_C__r__Object Thank you for the answer. I tried to use Apache::DBI with dbi_connect_m

Re: Closing DB handler with PerlCleanupHandler

2004-11-09 Thread Perrin Harkins
Batara Kesuma wrote: But I have a problem here, because I use 'our' on $dbh so other functions can use it. It looks like: --- sub show_name { our $dbh; my $sth = $dbh->prepare("SELECT name FROM member WHERE id=?"); $sth->execute(1); ... } ## MAIN my $mn = MyPackage::Main::->new(); our $dbh

Re: Closing DB handler with PerlCleanupHandler

2004-11-09 Thread Batara Kesuma
Hi Perrin, > It looks to me like you are creating this problem by using "our". Why > > not use "my" and pass the handle around, or put it somewhere like > $r->pnotes() instead? Yes I should have used 'my' and passed the handle around :( > Also, why do you want to avoid persistent connections?