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
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
{
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
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
'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
--- 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
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
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