Re: Performance Questions

2007-07-08 Thread John Drago
instead. That is unless the data represented as XML would lose something by not *being* XML. Regards, John Drago Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz

Re: Running Perl::Critic on Web App?

2008-03-29 Thread John Drago
tible with Perl::Critic, Devel::Cover and Devel::NYTProf so you can properly analyze your entire web application - not just the underlying class libraries. It *is* a new library but I've used it in production for several months without any problems. You can see som

Re: Apache2::Request

2008-05-23 Thread John Drago
{ my ($class, $r) = @_; } In either case, $r is an Apache2::RequestRec. The difference is the ": method" attribute that tells mod_perl to pass your "handler" sub 2 parameters instead of just 1. - John Drago http://www.devstack.com http://search.cpan.org/dist/Apache2-ASP

Re: Diagnosing memory usage

2008-06-16 Thread John Drago
I get to the bottom of > this? > > > > -Michael > > > -- > The Wellcome Trust Sanger Institute is operated by Genome > Research > Limited, a charity registered in England with number > 1021457 and a > company registered in England with number 2742969, whose > registered > office is 215 Euston Road, London, NW1 2BE. Sounds like the Perl code running under mod_perl (the scripts themselves) are the more likely culprit. Check out Devel::Cycle on CPAN ( http://search.cpan.org/perldoc?Devel::Cycle ) for more information on that. Best regards, John Drago

Re: Unable to get PerlAuthenHandler to work in mp2

2008-08-20 Thread John Drago
's "warn" function prints to STDERR, which is usually appended to the web server's errors log. To read the errors as they are printed, do the following (provided you have shell access on your server, and it's running on some kind of Unix/Linux system): tail -f /var/log/httpd/error_log (where /var/log/httpd/error_log is the path to your error log). Regards, John Drago

Re: Why load two modules to call methods on the same object?

2008-09-16 Thread John Drago
--- On Tue, 9/16/08, Himanshu <[EMAIL PROTECTED]> wrote: > From: Himanshu <[EMAIL PROTECTED]> > Subject: Why load two modules to call methods on the same object? > To: modperl@perl.apache.org > Date: Tuesday, September 16, 2008, 9:00 PM > For the following to work I must load Apache2RequestRec

Re: How to extract name/value pairs from the query string?

2008-09-23 Thread John Drago
pper on CPAN. It does everything you want, but you have to play with it to get it installed (just force install). Best regards, John Drago > > sub login_response { > my $r = shift; > my $args = $r->args(); > ... > } > > Thanks, > Himanshu

Re: live and dev versions of a module on the same server

2008-10-03 Thread John Drago
7;/path/to/correct/lib'; # Now reload My::ModuleName: require 'My/ModuleName.pm'; My::ModuleName->import(); That should force Perl to actually reload the module. You could probably streamline this logic a little better as a subref inside of @INC. Best regards, John Drago