Jan Theofel wrote:
Hello,

Am Mon, 2002-11-25 um 01.14 schrieb Stas Bekman:

Jan Theofel wrote:

[Sun Nov 24 17:59:45 2002] shop.pl: Subroutine main redefined at
/home/www/[...]/shop/engine/shop.pl line 19.
This is a warning, not an error.

Ok, but why do I get this warning? I don't redefine the sub.
That shouldn't happen. Since under PerlRun the namespace is cleaned before the new request. Any chance you have it defined twice in the same script?

Google found some problems and solutions for that, but they all seemed
to be for Apache::Registry and not for Apache::PerlRun.
::Registry and ::PerlRun are very similar, most things that apply to the former apply to the latter, see docs for more info.

Is ::PerlRun like running ::Registry with the Apache configuration
"PerlSetVar PerlRunOnce On"?
Not completely. Docs are coming to help:
http://perl.apache.org/docs/1.0/guide/intro.html#Apache__PerlRun

That should be:

  PerlSendHeader on

since you manually print your headers.

Ok, this works. Thanks.
;)



__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Reply via email to