Perrin, Thanks for responding. I'm not sure why it posted four times. I'm new here. I posted the original request Sunday morning I think. I didn't get any responses, so early this morning I registered as 'cliff' with perl monks and made a similiar request.
Clinton responded and worked with me for about an hour in the chatterbox. I put a lot of stuff in my (cliff) scratchpad like the ENV values, the relevant Apache httpd entries, a dump, the Apache error log, and code examples. Would it be possible for you to review the stuff I put there? Clinton didn't spot anything. But the MOD_PERL ENV variable is not getting set and this variable controls the release of globals in the beginning of CGI.pm. I don't know how this variable gets established, but I think its an important clue. My environment is Windows XP Home/Apache 2/Perl 5.8/mod_perl 2. I can execute my application under PerlRun (perl-run). It executes. But when I click on anchors that pass CGI paramters using the same ?str variable to pass the paramters, the parameter values passed in ?str when I execute the first anchor (regardless of which one I execute first) persist. These values get passed to subsequent anchor executions passing the paramters values in ?str. The initial value of ?str persists until I recycle the server. The application does execute and operate correctly under CGI. The 2 URLs for these execution environments are: http://steepusa.no-ip.info/cgi-bin/m3.cgi http://steepusa.no-ip.info/perl-run/m3.cgi I use strict everywhere and all Perl variables are declared with my. I have verified that the values of the varaiables I assign to ?str in the anchors are correct in all anchor executions. Thanks again Perrin. I appreciate any help. CraigT (or Cliff in Perl Monks) Perrin Harkins wrote: > > Hi, > > There's no need to post your question four times. > >> I'm trying to bring my application up using ModPerl::PerlRun. I have >> anchors at places in my code like >> HREF='vumenu.cgi?str=$govlevel~$vufiles' where I'm passing parameters to >> the HREF. I use the ?str part of HREF in other anchor invocations. >> However the first anchor execution ?str definition persists so that the >> next >> anchor executed using ?str has the ?str defintion of the first anchor >> executed. I'm guessing that str is a global and persists. > > I can't tell what you're doing from this description. Can you show us > some of your code? > >> Additionally, if I execute the same anchor twice in a >> row, changing the data the paramters are composed from between the 2 >> executions, the paramters do not change on the second execution under >> PerlRun but do under CGI. > > It sounds like your code has a scoping bug, probably an unintentional > closure. Can you show us the code where you get the CGI parameters? > > - Perrin > > -- View this message in context: http://www.nabble.com/passing-CGI-paramters-tf4008753.html#a11416640 Sent from the mod_perl - General mailing list archive at Nabble.com.