Re: Prob. installing libapreq2 under Leopard

2007-11-12 Thread Hendrik Van Belleghem
Hey, Are you using a beta Leopard? All my modules are timestamped about 20 days later :) Hendrik On Nov 11, 2007 9:54 PM, Laurent MARTIN <[EMAIL PROTECTED]> wrote: > I've neglected to look into the modules folder before I started compiling. > Is yours timestamped on the 24/09? Does that one wor

Re: Building mod_perl2 on Leopard

2007-11-12 Thread Jonathan Vanasco
On Nov 10, 2007, at 8:00 PM, Hendrik Van Belleghem wrote: To be honest, I haven't been able to get DBD::mysql compiled, nor Apache2::Request (properly - still some strange errors in the apache2 error log when I try to load it). I haven't fully tested the Apache2 (or mod_perl for that matter).

Re: Building mod_perl2 on Leopard

2007-11-12 Thread Hendrik Van Belleghem
Actually, I'm still using the default Apache2.. I did built mod_perl2 from scratch. One of my fellow perl mongers installed Leopard before I did and mentioned that he couldn't find mod_perl2 on it.. I just assumed that it wasn't there so I rebuilt :) Any ideas about the architecture signature in t

simple profiling capability

2007-11-12 Thread E R
Hi, I have the need for a simple profiling capability for mod_perl applications. At a few (< 50) points in my code I want to call something like: $profiler->mark("some identifier"); and increment the counter for "some identifier". Later I want to be able to get (through a web page) a summary (gr

Re: simple profiling capability

2007-11-12 Thread Geoffrey Young
E R wrote: > Hi, > > I have the need for a simple profiling capability for mod_perl applications. > At a few (< 50) points in my code I want to call something like: > > $profiler->mark("some identifier"); > > and increment the counter for "some identifier". Later I want to be able to > get >

Re: simple profiling capability

2007-11-12 Thread E R
On Nov 12, 2007 9:51 AM, Geoffrey Young <[EMAIL PROTECTED]> wrote: > this should help: > > http://search.cpan.org/dist/Devel-Profiler/lib/Devel/Profiler/Apache.pm The two problems I see with this package are: 1. I don't want to profile every single subroutine. In fact, I want to profile only spec

Re: simple profiling capability

2007-11-12 Thread Jonathan Vanasco
i'm just tossing this idea out... 1) have a profiler package that handles all the logging, etc - and uses a constant package MyApp:::Profiler; use constant DO_PROFILE=> 1; sub profile { my ( $marker )= @_ ; #log; } 1; 2)

Re: simple profiling capability

2007-11-12 Thread Perrin Harkins
On Nov 12, 2007 10:59 AM, E R <[EMAIL PROTECTED]> wrote: > 1. I don't want to profile every single subroutine. In fact, I want to > profile only specific locations within my code, and a subroutine may > have more than one profiling location. You can control which packages are profiled. Check the

Re: simple profiling capability

2007-11-12 Thread E R
On Nov 12, 2007 11:25 AM, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > i'm just tossing this idea out... Thanks for the ideas. The main issue I'm trying to find a good solution for is the collection of the profiling info from all the child processes because occasionally I want to poll the stats i

Re: simple profiling capability

2007-11-12 Thread Perrin Harkins
On Nov 12, 2007 3:25 PM, E R <[EMAIL PROTECTED]> wrote: > 1. a call to $profile->mark(...) will emit a special record to the log file > 2. on server start up, spawn a single process to monitor the log file > and collect profile records > 3. have the monitoring process listen on a socket for request

Re: A question about the post_config phase mod_perl handler

2007-11-12 Thread Philippe M. Chiasson
Boysenberry Payne wrote: > In the example at: > http://perl.apache.org/docs/2.0/user/handlers/ > server.html#C_PerlPostConfigHandler_ > > the PerlPostConfigHandler subroutine returns Apache2::Const::OK. > > I was wondering if it mattered what it returned, and if so, what are > the alternatives

mod perl and HTML forms

2007-11-12 Thread Mag Gam
I am new to mod_perl, and I am trying to pass data thru a HTML form. I am able to get all data with the exception of "SELECT MULTIPLE" Can someone please provide a good example with this? Or show me a document I can refer to. TIA

+Parent breaks Oracle connection?

2007-11-12 Thread George L. Roman
I'm having trouble running RT using the PerlOptions +Parent directive. My httpd.conf file: NameVirtualHost * ServerName default.name.com DocumentRoot"/var/www/html" Options FollowSymLinks AllowOverride None

Re: A question about the post_config phase mod_perl handler

2007-11-12 Thread Boysenberry Payne
Interesting, I tried just returning and several other non-OK returns and got no error. Here is a sample of what I tried: In httpd.conf: PerlPostConfigHandler MyModule::PostConfig package MyModule::PostConfig; use strict; use warnings; # Apache2 Post Config Hook Phase Handler sub

Re: A question about the post_config phase mod_perl handler

2007-11-12 Thread Philippe M. Chiasson
Boysenberry Payne wrote: > Interesting, I tried just returning and several other non-OK returns > and got no error. Interesting, I supect the only thing that bails it out are error status in the 400-500 range then. Turns out it's a MP_HOOK_RUN_ALL (http://perl.apache.org/docs/2.0/user/handlers