in reply to Basic question

You're probably running under Apache::Registry. From the CAVEATS section of Apache::Registry:
Apache::Registry makes things look just the CGI environment, however, you must understand that this *is not CGI*. Each httpd child will compile your script into memory and keep it there, whereas CGI will run it once, cleaning out the entire process space.

I wouldn't be surprised if my $Report is a package lexical, which only gets initialized once. And from then on keeps its value between requests.

I haven't used Apache::Registry myself ever, but I think you can solve this by putting your code in a block, like this:

{ my $Report = ""; ... yada yada yada print STDERR....; }

This will ensure that $Report will get initialized properly each request.

This is untested, so YMMV.

Liz

Replies are listed 'Best First'.
Re: Re: Basic question
by valdez (Monsignor) on Aug 20, 2003 at 10:06 UTC
      Thank you Valerio, thank you all.
      This (my() Scoped Variable in Nested Subroutines)is the explanation.
      I am under Apachel::Registry, ans using diagnostics, I have put in evidence that :
      Variable "$Report" will not stay shared at .../update.pl
      Thank you all again.
      Pierre
Re^2: Basic question (BEGIN)
by tye (Sage) on Aug 20, 2003 at 15:40 UTC

    You can fix it with a BEGIN block, but not with a plain block.

                    - tye