Apache-Test compatibility (was:Re: colorizing the build's output)

2001-06-19 Thread Stas Bekman
[getting back to the list] > On Wed, 20 Jun 2001, Stas Bekman wrote: > > > but I think you wanted to make Apache::Test a stand-alone package. Which > > means that it might be used for perl < 5.6.0, right? Hence the require {}. > > by standalone i was more worried about Apache-Test depending on >

Re: colorizing the build's output

2001-06-19 Thread Doug MacEachern
On Wed, 20 Jun 2001, Stas Bekman wrote: > we will be incompatible with 'warn' only, since it's taken by Perl > already. yeah, same as apache (which are really from syslog) would be great. just use warning instead warn. of course, we are just building/testing, not running a service, so emerg,

Re: colorizing the build's output

2001-06-19 Thread Doug MacEachern
On Wed, 20 Jun 2001, Stas Bekman wrote: > > looks good, but i would change the first part to: > > *expand = HAS_DUMPER ? sub { map { ... } } : sub { @_ }; > > can you please explain why yours is better? easier to read and expand() could be used outside the module whereas my $expand cannot. >

RE: mod_perl 2.0

2001-06-19 Thread Jeffrey A. Stuart
Umm.. 5.7.1 is a devel release... yes? (Sorry, I meant stable... I assumed that 5.7 would at some point be the stable branch or is perl taking the linux kernel route?) -- Jeff Stuart [EMAIL PROTECTED] -Original Message- From: Doug MacEachern [mailto:[EMAIL PROTECTED]] Sent: Tuesday, Ju

Re: colorizing the build's output

2001-06-19 Thread Stas Bekman
On Wed, 20 Jun 2001, Stas Bekman wrote: > On Tue, 19 Jun 2001, Doug MacEachern wrote: > > do you plan to implement a $Level similar to Apache's LogLevel, so we > > have the default set to error or warning for normal builds, but people > > can turn it up for more verbose output. that would be co

Re: colorizing the build's output

2001-06-19 Thread Stas Bekman
On Tue, 19 Jun 2001, Doug MacEachern wrote: > On Wed, 20 Jun 2001, Stas Bekman wrote: > > > Can you give me an example of how would you want to use those? Why would > > you want to have notify functions have this capability. > > can you give me examples of how you would want to use dumper() ? > t

Re: colorizing the build's output

2001-06-19 Thread Doug MacEachern
On Wed, 20 Jun 2001, Stas Bekman wrote: > Can you give me an example of how would you want to use those? Why would > you want to have notify functions have this capability. can you give me examples of how you would want to use dumper() ? they would be the same reasons. > Something like this?

Re: colorizing the build's output

2001-06-19 Thread Stas Bekman
On Tue, 19 Jun 2001, Doug MacEachern wrote: > On Wed, 20 Jun 2001, Stas Bekman wrote: > > > $ perl -MModPerl::Trace=error,dumper,warning,notice,debug,todo -lwe \ > > 'error "error"; warning "warning"; notice "notice"; debug "debug"; \ > > todo "todo"; dumper [1..3]' > > cool. howbout instead of

RE: mod_perl 2.0

2001-06-19 Thread Doug MacEachern
On Tue, 19 Jun 2001, Jeffrey A. Stuart wrote: > Ok.. :) Next question... Will mod_perl work with perl 5.005 or 5.6? (IE is > perl 5.7 due out soon?) % head -1 modperl-2.0/Makefile.PL use 5.006; 5.7.1 has already been released, 5.7.2 is due soonish. it is possible modperl-2.0 will require 5.8

RE: Apache::Util stuff

2001-06-19 Thread Doug MacEachern
On Tue, 19 Jun 2001, Geoffrey Young wrote: > oh, ok - I don't have to call bootstrap myself, but I still need to go > through the rest of the excercise to load everything up, right? depends what you mean by 'rest'. if you follow what xs/APR/APR does, ie link against libhttpd.so in the Makefile

RE: Apache::Util stuff

2001-06-19 Thread Geoffrey Young
> -Original Message- > From: Doug MacEachern [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 19, 2001 1:39 PM > To: Geoffrey Young > Cc: '[EMAIL PROTECTED]' > Subject: RE: Apache::Util stuff > > > On Tue, 19 Jun 2001, Geoffrey Young wrote: > > > > set $ENV{MOD_PERL} in libhttpd.pm an

Re: colorizing the build's output

2001-06-19 Thread Doug MacEachern
On Wed, 20 Jun 2001, Stas Bekman wrote: > $ perl -MModPerl::Trace=error,dumper,warning,notice,debug,todo -lwe \ > 'error "error"; warning "warning"; notice "notice"; debug "debug"; \ > todo "todo"; dumper [1..3]' cool. howbout instead of a dumper function, have the trace function(s) dump any

RE: Apache::Util stuff

2001-06-19 Thread Doug MacEachern
On Tue, 19 Jun 2001, Geoffrey Young wrote: > > set $ENV{MOD_PERL} in libhttpd.pm and 'use Apache::Util ()' > > should work. > > this is just for 2.0, though, right? for 1.3 I'm stuck doing the bootstrap > manually (no apr_initialize equivalent in 1.3) no, i'm talking 1.3. apr_initialize is

Re: colorizing the build's output

2001-06-19 Thread Stas Bekman
On Mon, 18 Jun 2001, Doug MacEachern wrote: > On Sun, 17 Jun 2001, Stas Bekman wrote: > > > > > What do you think about adding some semantics for the debug printing > > during 'make test'. So users can visually tell warnings from errors, and > > errors from notice statements. > > > > so we can us

Re: colorizing the build's output

2001-06-19 Thread Ken Williams
[EMAIL PROTECTED] (Doug MacEachern) wrote: >On Sun, 17 Jun 2001, Stas Bekman wrote: >> What do you think about adding some semantics for the debug printing >> during 'make test'. So users can visually tell warnings from errors, and >> errors from notice statements. >> >> so we can use: >> >> mpt

RE: mod_perl 2.0

2001-06-19 Thread Jeffrey A. Stuart
Ok.. :) Next question... Will mod_perl work with perl 5.005 or 5.6? (IE is perl 5.7 due out soon?) -- Jeff Stuart [EMAIL PROTECTED] -Original Message- From: Doug MacEachern [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 12:21 PM To: Jeffrey A. Stuart Cc: modperl-2.0 dev-list S

RE: Apache::Util stuff

2001-06-19 Thread Geoffrey Young
> -Original Message- > From: Doug MacEachern [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 19, 2001 12:17 PM > To: Geoffrey Young > Cc: '[EMAIL PROTECTED]' > Subject: Re: Apache::Util stuff > > > On Tue, 19 Jun 2001, Geoffrey Young wrote: > > > I was able to come up with the below

RE: mod_perl 2.0

2001-06-19 Thread Doug MacEachern
On Tue, 19 Jun 2001, Jeffrey A. Stuart wrote: > Ok, is mod_perl 2.0 alpha, beta, stable, what? :) unreleased, pre-alpha, stable-ish. apache-2.0 is still a moving target, as is bleedperl (5.7.2-dev), so its easy for a change in either of those to break the modperl-2.0 cvs.

Re: Apache::Util stuff

2001-06-19 Thread Doug MacEachern
On Tue, 19 Jun 2001, Geoffrey Young wrote: > I was able to come up with the below module that allows you to use > Apache::Util outside of Apache. cool. > So, my questions are: > will the ap/apr split make this type of thing unnecessary in 2.0? we still need something to load the apr librar

Re: use base vs. use+our @ISA

2001-06-19 Thread Matt Sergeant
On Tue, 19 Jun 2001, Dave Rolsky wrote: > On Tue, 19 Jun 2001, Matt Sergeant wrote: > > > > similar test works fine for me: > > > package My; > > > use base qw(Cwd Socket Fcntl); > > > sub new { bless {} } > > > > This was a perl 5.6.0 bug in base.pm. > > Actually, for what its worth this was a b

Re: use base vs. use+our @ISA

2001-06-19 Thread Dave Rolsky
On Tue, 19 Jun 2001, Matt Sergeant wrote: > > similar test works fine for me: > > package My; > > use base qw(Cwd Socket Fcntl); > > sub new { bless {} } > > This was a perl 5.6.0 bug in base.pm. Actually, for what its worth this was a bug in the caching done for checking ->isa. The bug exists

Re: use base vs. use+our @ISA

2001-06-19 Thread brian moseley
On Tue, 19 Jun 2001, Matt Sergeant wrote: > This was a perl 5.6.0 bug in base.pm. ah cool, maybe it's fixed in 5.6.1 then? i guess i'll have to upgrade, altho i'd like to stick to 5.6.0 that's distributed by suse.. - To unsub

Re: mod_perl 2.0 win32

2001-06-19 Thread Kurt George Gjerde
> it will be worth the wait if you're currently using 1.xx on win32 :) I've tried out 1.something and definately want mod_perl(!) but 1.x on win32 is not an option since Apache (on win32) runs threaded using only 1 process (actually 2) and one instance of mod_perl only handle 1 request at a time.

Apache::Util stuff

2001-06-19 Thread Geoffrey Young
hi all... sorry about always talking about the mundane 1.3 stuff, but... based on this comment by Doug: http://marc.theaimsgroup.com/?l=apache-modperl&m=94148186408430&w=2 I was able to come up with the below module that allows you to use Apache::Util outside of Apache. So, my questions ar

Re: use base vs. use+our @ISA

2001-06-19 Thread Matt Sergeant
On Mon, 18 Jun 2001, Doug MacEachern wrote: > On Mon, 18 Jun 2001, brian moseley wrote: > > > in my tests, if i do > > similar test works fine for me: > package My; > use base qw(Cwd Socket Fcntl); > sub new { bless {} } This was a perl 5.6.0 bug in base.pm. -- /||** Founder and C