Re: Apache::PerlRun weird behavior?

2002-09-03 Thread valerian
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 latest

Re: Apache::PerlRun weird behavior?

2002-09-03 Thread Stas Bekman
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 that came with

RE: Apache::PerlRun weird behavior?

2002-09-03 Thread Narins, Josh
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 'dirty' to run under Apache::Registry

Re: Apache::PerlRun weird behavior?

2002-09-02 Thread Perrin Harkins
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 run

Re: Apache::PerlRun weird behavior?

2002-09-02 Thread Stas Bekman
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 track of

Re: Apache::PerlRun weird behavior?

2002-09-01 Thread Perrin Harkins
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

Re: Apache::PerlRun weird behavior?

2002-09-01 Thread Stas Bekman
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::Config; BEGIN

Apache::PerlRun weird behavior?

2002-08-31 Thread valerian
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

Re: Apache::PerlRun weird behavior?

2002-08-31 Thread Stas Bekman
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