Re: Accessing main:: from within a package

2005-05-26 Thread Stas Bekman
Ken Clarke wrote: Hi Folks, With the release of mod_perl 2 (all say "Yeah Stas!" :) I decided to dive in. It'll be a change of mindset for me since I've coded perl scripts for mod_cgi for years. I have a library of perl modules which occasionally make reference to package main:: (EG

Accessing main:: from within a package

2005-05-26 Thread Ken Clarke
Hi Folks, With the release of mod_perl 2 (all say "Yeah Stas!" :) I decided to dive in. It'll be a change of mindset for me since I've coded perl scripts for mod_cgi for years. I have a library of perl modules which occasionally make reference to package main:: (EG $main::ScriptGlobal

Re: [mp2] SOLVED? segfaulting apache in ap_pcw_walk_files_config

2005-05-26 Thread John D Groenveld
In message <[EMAIL PROTECTED]>, Flavio Curti writes: >EXTRA_CPPFLAGS in config_vars.mk the segfaulting is gone. I wonder >where the mistake lies. In apache for not filling EXTRA_CPPFLAGS? Me >not setting it at all for CPPFLAGS? mod_perl not detecting it? (btw I don't know whether its an Apache bug

Re: high throughput perl server

2005-05-26 Thread Perrin Harkins
On Thu, 2005-05-26 at 14:53 -0400, Erik Aronesty wrote: > If all you're doing is serving static pages, you're probably not hanging > out on the modperl list. > > That being said, thttpd rocks, but it's cgi speed is awfully slow. > ppcgid kicks it's butt in that arena. Multiplexing while runnin

Re: high throughput perl server

2005-05-26 Thread Erik Aronesty
theshz wrote: Have you looked at POE? http://poe.perl.org/ POE is VERY cool!. Thanks for the link. It's the same event-driven model that I needed. It was hard for me to read or understand. I'll probabyl keep using my little ppcgid server until I find a need for a serious framework like P

Re: high throughput perl server

2005-05-26 Thread Perrin Harkins
When all you're doing is serving static files, most people run out of bandwidth long before they hit any limitation of apache. If you really are running into limits on your static files, you would be better off using one of these: Tux, http://www.redhat.com/docs/manuals/tux/ thttpd, http://www.

Re: [mp2] SOLVED? segfaulting apache in ap_pcw_walk_files_config

2005-05-26 Thread Flavio Curti
Hi John On 5/26/05, John D Groenveld <[EMAIL PROTECTED]> wrote: > In message <[EMAIL PROTECTED]>, Flavio Curti writes: > >> Apache: > >> CFLAGS="-Wall -g -O2 -pipe -I/usr/include/xmltok > >> -I/usr/include/openssl -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 " > >> LDFLAGS="-ldl -lexpat -lc

Re: [mp2] segfaulting apache in ap_pcw_walk_files_config

2005-05-26 Thread John D Groenveld
In message <[EMAIL PROTECTED]>, Flavio Curti writes: >> Apache: >> CFLAGS="-Wall -g -O2 -pipe -I/usr/include/xmltok >> -I/usr/include/openssl -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 " >> LDFLAGS="-ldl -lexpat -lcrypt -ldb-4.2" \ >> ./configure \ >> --with-program-name=httpd2 --with-dbm=

Re: Mod Perl Code failures

2005-05-26 Thread Joe Cullin
> > sub strip_end_data_segment { > > -${ +shift->{CODE} } =~ s/__(END|DATA)__(.*)//s; > > +${ +shift->{CODE} } =~ s/^__(END|DATA)__(.*)//ms; > > } > Sorry for the random, and probably naive question. What does the + in > front of the shift do? > -- > Regards, > Iain Check out "perldoc

Re: [mp2] segfaulting apache in ap_pcw_walk_files_config

2005-05-26 Thread Flavio Curti
Hi On 5/26/05, Flavio Curti <[EMAIL PROTECTED]> wrote: > Anyway, I will send you the configure commands from my custom debian Packages: > > Can you send me the _exact_ commands you use to configure apache and > > mod_perl ? > (I noticed that I set CFLAGS for the apache build but none for > mod_pe

Re: [mp2] segfaulting apache in ap_pcw_walk_files_config

2005-05-26 Thread Flavio Curti
On 5/26/05, Philippe M. Chiasson <[EMAIL PROTECTED]> wrote: > Oupss, my bad, that should have been > (gdb) print *s > (gdb) print *dconf (gdb) print *s $1 = {process = 0x80c0120, next = 0x935a270, defn_name = 0x0, defn_line_number = 0, server_admin = 0x81e8678 "[EMAIL PROTECTED]", server_host

Re: [mp2] segfaulting apache in ap_pcw_walk_files_config

2005-05-26 Thread Philippe M. Chiasson
Flavio Curti wrote: > Hi Philippe > > On 5/25/05, Philippe M. Chiasson <[EMAIL PROTECTED]> wrote: > >>Hrm, so far, I've looked at the configuration files you've sent me and they >>look kosher. I was thinking something bogus inherited from your debian's >>configuration...Guess not. >> >>One more g

Re: Mod Perl Code failures

2005-05-26 Thread iain hubbard
On Wed, 2005-05-25 at 18:12, Stas Bekman wrote: [snip] > Index: ModPerl-Registry/lib/ModPerl/RegistryCooker.pm > === > --- ModPerl-Registry/lib/ModPerl/RegistryCooker.pm (revision 171124) > +++ ModPerl-Registry/lib/ModPerl/Registr