On Mon, 2003-11-10 at 14:12, Andrey A. Kudrin wrote: > PH> There is nothing in your sample code here that would cause one sub to be > PH> called in place of another. How do you know that the other print_login > PH> is being called? > > Because I see the result page. All print_login prints different pages.
Does the output you send depend on something external, like a parameter from CGI.pm? > PH> Is it because of CGI parameters that get printed? You > PH> might be having a problem with accidentally caching your CGI object > PH> somewhere. > > but why it's cached under PerlRun? You could be accidentally creating a closure. Also, keep in mind that PerlRun only clears globals within the main script. If you use any modules that have globals in their own namespaces, those do not get cleared by PerlRun. > PH> Can you show us the print_login subs? > > there is nothing extraordinary, just few prints and nothing else. Well, the code you've shown so far doesn't seem like it could produce the results you're talking about, so we really need you to show us a test case to give you further help. If you can reduce your script down to a very simple one that demonstrates the problem and post it here, we can probably see what's wrong. - Perrin -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html