Where to find Apache2::PAR for Windows?

2006-01-09 Thread Foo Ji-Haw
Hi all,   I've been using PAR and mp2. Just thought to try out Apache2::PAR, but realise that it does not come with the mp2 installation. Checked out http://www.bribes.org/perl/ppm/ but it's not there either.   Appreciate if anyone can point me in the right direction to the ppd repository. T

Re: Where to find Apache2::PAR for Windows?

2006-01-09 Thread Philip M. Gollucci
Foo Ji-Haw wrote: Hi all, I've been using PAR and mp2. Just thought to try out Apache2::PAR, but realise that it does not come with the mp2 installation. Checked out http://www.bribes.org/perl/ppm/ but it's not there either. Normally, I would suggest http://theory.uwinnipeg.ca/ppms/ but I l

Re: Where to find Apache2::PAR for Windows?

2006-01-09 Thread Randy Kobes
On Mon, 9 Jan 2006, Philip M. Gollucci wrote: Foo Ji-Haw wrote: Hi all, I've been using PAR and mp2. Just thought to try out Apache2::PAR, but realise that it does not come with the mp2 installation. Checked out http://www.bribes.org/perl/ppm/ but it's not there either. Normally, I would su

Re: Where to find Apache2::PAR for Windows?

2006-01-09 Thread Philip M. Gollucci
Randy Kobes wrote: Normally I don't make up ppm packages based on CPAN development packages (which Apache2-SOAP is), for stability reasons. However, since there isn't a non-development package for this, this wouldn't be a problem - I just placed one up at http://theoryx5.uwinnipeg.ca/ppms/ Wo

[MP2] possible pnotes bug?

2006-01-09 Thread Torsten Foertsch
Hi, consider this handler: sub handler { my $r=shift; $r->content_type('text/plain'); my $ctx={foo=>1, bar=>2}; $r->pnotes(x=>$ctx); $r->print( "\n".Dumper( $r->pnotes('x') ) ); undef $ctx; $r->print( "\n".Dumper( $r->pnotes('x') ) ) ; return

Re: [MP2] possible pnotes bug?

2006-01-09 Thread Clint Edwards
Torsten, Yes this is expected, $ctx contains a reference to an anonymous hash, and when you store the value of $ctx in your pnotes, you are merely storing another reference, therefore whenever the values pointed to by $ctx change, you effectively change what is seen in pnotes. On Mon, 2006-01-09

Re: [MP2] possible pnotes bug?

2006-01-09 Thread John ORourke
Torsten wasn't changing the value pointed to by $ctx, he was changing $ctx - therefore it looks like pnotes actually stores a reference to the scalar you give it, instead of the actual scalar itself as the docs imply. So I'd say it's a doc bug, but I'd prefer pnotes to store the actual scalar

MP2 Problem including local file

2006-01-09 Thread Nicholas Aaron Philbrook
I recently put together a Gentoo server with apache and mod_perl. I'm trying to run a perl script that has a require statement for a local file, i.e. require "database_util.pl" where database_util.pl is another perl file in the same directory. These scripts were running fine on another guy's serv

Re: MP2 Problem including local file

2006-01-09 Thread Philip M. Gollucci
Nicholas Aaron Philbrook wrote: I recently put together a Gentoo server with apache and mod_perl. I'm trying to run a perl script that has a require statement for a local file, i.e. require "database_util.pl" Also, interestingly the script will run fine from the command prompt and duly chunk out

Re: MP2 Problem including local file

2006-01-09 Thread Tyler MacDonald
Nicholas Aaron Philbrook <[EMAIL PROTECTED]> wrote: > I recently put together a Gentoo server with apache and mod_perl. I'm > trying to run a perl script that has a require statement for a local > file, i.e. > > require "database_util.pl" > > where database_util.pl is another perl file in the sam

Re: [MP2] possible pnotes bug?

2006-01-09 Thread Torsten Foertsch
On Monday 09 January 2006 20:22, John ORourke wrote: > Torsten - for a workaround try not re-using $ctx until it's gone out of > scope, like this: > >                 $r->content_type('text/plain'); >                 { >                         my $tmp={one=>1,two=>2}; >                         $r-

Re: [MP2] possible pnotes bug?

2006-01-09 Thread Philip M. Gollucci
John ORourke wrote: Torsten wasn't changing the value pointed to by $ctx, he was changing $ctx - therefore it looks like pnotes actually stores a reference to the scalar you give it, instead of the actual scalar itself as the docs imply. So I'd say it's a doc bug, but I'd prefer pnotes to stor

error

2006-01-09 Thread Octavian Rasnita
Hi, [Tue Jan 10 22:05:34 2006] [error] [client 127.0.0.1] Can't locate object method "FETCH" via package "APR::Table" at e:/web/modules/Modul.pm line 35.\n The line 35 of that script contains: my ($session_id) = $r->headers_in->{Cookie}; I have read perldoc APR::Table and I have seen that it sa

Re: MP2 Problem including local file

2006-01-09 Thread Perrin Harkins
On Mon, 2006-01-09 at 14:51 -0500, Nicholas Aaron Philbrook wrote: > where database_util.pl is another perl file in the same directory. > These scripts were running fine on another guy's server, but now I get > a 500 Internal Server Error when I try to access them via web, and the > apache error lo

Re: error

2006-01-09 Thread Philip M. Gollucci
[Tue Jan 10 22:05:34 2006] [error] [client 127.0.0.1] Can't locate object method "FETCH" via package "APR::Table" at e:/web/modules/Modul.pm line 35.\n The following works me... I cut and pasted your "line 35" package TEST::Headers; use strict; use warnings FATAL => 'all'; use Carp; use Apach

Re: error

2006-01-09 Thread Octavian Rasnita
From: "Philip M. Gollucci" <[EMAIL PROTECTED]> Subject: Re: error > > [Tue Jan 10 22:05:34 2006] [error] [client 127.0.0.1] Can't locate object > > method "FETCH" via package "APR::Table" at e:/web/modules/Modul.pm line > > 35.\n > > The following works me... I cut and pasted your "line 35" I ha

Re: error

2006-01-09 Thread Philip M. Gollucci
Octavian Rasnita wrote: I am using Apache 2.055, ActivePerl 5.8.7 under Windows 2000. Anyone else with Windows want to give this a spin... I don't have one available at the moment. "Love is not the one you can picture