alerian [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 31, 2002 8:39 PM
To: [EMAIL PROTECTED]
Subject: Apache::PerlRun weird behavior?
Hi I'm new at mod_perl, and I decided to start running my scripts with
Apache::PerlRun so I don't have to rewrite them right away (they're too
'd
valerian wrote:
>>What mod_perl version are you using? Try to use the latest one. (though
>>PerlRun didn't change for years).
>>
>>I've tested with: mod_perl 1.27 (perl 5.6.1 and 5.8.0)
>
>
> This was the environment:
>
>mod_perl 1.21, perl 5.005, apache 1.3.9
>(all default packages t
On Sun, Sep 01, 2002 at 12:58:18PM +0800, Stas Bekman wrote:
> Copy-n-pasted your conf and the code and I cannot reproduce the problem
> with Apache::PerlRun.
>
> Do you have this problem when you run the server under 'httpd -X'?
Yes
> What mod_perl version are you using? Try to use the lates
Perrin Harkins wrote:
> Stas Bekman wrote:
>
>> I think I've had enough coffee. PerlRun recompiles the code on each
>> request, meaning that it re-runs any BEGIN blocks on each request.
>> Meaning that My::Config will re-import %CF afresh.
>
> That makes sense. I was thinking that keeping tra
Stas Bekman wrote:
> I think I've had enough coffee. PerlRun recompiles the code on each
> request, meaning that it re-runs any BEGIN blocks on each request.
> Meaning that My::Config will re-import %CF afresh.
That makes sense. I was thinking that keeping track of which BEGIN
blocks had ru
Perrin Harkins wrote:
> valerian wrote:
>
>> So the weird thing is that it runs fine the first time, but when I
>> reload the page, it doesn't show the variable I imported from
>> My::Config
>
>
> Try changing this:
>
> use My::Config;
>
> to this:
>
> require My::Config;
> import My::Confi
valerian wrote:
> So the weird thing is that it runs fine the first time, but when I
> reload the page, it doesn't show the variable I imported from
> My::Config
Try changing this:
use My::Config;
to this:
require My::Config;
import My::Config;
BEGIN blocks are only run once in PerlRun/Regis
valerian wrote:
> Hi I'm new at mod_perl, and I decided to start running my scripts with
> Apache::PerlRun so I don't have to rewrite them right away (they're too
> 'dirty' to run under Apache::Registry). Anyway, I figured it was going
> to be easy since PerlRun provides an environment similar to
Hi I'm new at mod_perl, and I decided to start running my scripts with
Apache::PerlRun so I don't have to rewrite them right away (they're too
'dirty' to run under Apache::Registry). Anyway, I figured it was going
to be easy since PerlRun provides an environment similar to CGI, but
something stra