On Fri, 2004-03-12 at 13:37, Nath wrote:
> This is odd since those older values should have been erased instead of
> being stored and reused again.

It's a closure problem.  You have something that does this:

my $foo = some_sub();

sub bar {
    print $foo;
}

The value printed for $foo will never change, because bar() is now a
closure and has a local copy of it.

> Oh, and $QUERY is just a method derived from $ENV{'QUERY_STRING'} to break
> up the results in the URL header.

It would be better not do that.  Use Apache::Request or one of the CGI
modules.

- Perrin


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to