>> (A solution would be to force all "my" varialbes at the file scope to
>> be "our" and then put the cgi in an anonymous package:)
>
> A file/package-scoped "my" var is not the same thing as an "our" var. One
> example is that a "my" var can't be seen outside of the package/scope it's
> in. A pack
> Variable "$x" will not stay shared at /usr/local/prefork/perl/thing.cgi line
> 10.
Yes, I foolishly looked in the per-virtual-host error log, instead of
the global error log
where the warning was placed neatly.
> which, with a quick googling of 'mod_perl variable will not stay shared',
I was b
> Maybe ModPerl::Registry should do this, but not mod_perl itself. If someone
Yes, it's a problem with ModPerl::Registry, I agree. It's not mentioned here:
http://perl.apache.org/docs/2.0/api/ModPerl/Registry.html#Caveats
Where it should be.
> is trying to get an old CGI script to work under m
(A solution would be to force all "my" varialbes at the file scope to
be "our" and then put the cgi in an anonymous package:)
On Thu, Feb 12, 2009 at 10:33 AM, Erik Aronesty wrote:
> -8<-- Start Bug Report 8<--
> 1. Problem
-8<-- Start Bug Report 8<--
1. Problem Description:
It's well known that file-scoped lexicals don't work intuitively in
CGI programs under mod_perl.
When mod_perl calls the same CGI program twice, file-scoped lexicals
are not rebound.
Some people are aware
and merge them.
David Nicol wrote:
>On 5/26/05, Perrin Harkins <[EMAIL PROTECTED]> wrote:
>
>
>>On Thu, 2005-05-26 at 14:53 -0400, Erik Aronesty wrote:
>>
>>
>>>ppcgid kicks it's butt in that arena.
>>>
>>>
>>&
hz wrote:
Have you looked at POE? http://poe.perl.org/
Z.
- Original Message -
From: "Erik Aronesty" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, May 25, 2005 7:16 PM
Subject: high throughput perl server
In order to deal with apache's problems handling a high load,
In order to deal with apache's problems handling a high load, I wrote
a trivial pure perl server with few features.
http://www.documentroot.com/code/ppcgid
Since it's nonforking, it's not appropriate if your web pages block on
IO, or if some of them are much slower than others, etc.
But it'