Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^13: Apache Registry with Server Side Includes

by Anonymous Monk
on Jan 07, 2012 at 14:46 UTC ( #946766=note: print w/replies, xml ) Need Help??


in reply to Re^12: Apache Registry with Server Side Includes
in thread Apache Registry with Server Side Includes

Attempted to clarify the difference in a follow up to a question on it. If someone is trying to help, am not going to turn it away.

Am glad that you too are still "interested" in this question! Had not run DebugCGI. No unexpected diffs in the %ENV, but what looks like maybe a request handler appeared in the registry-ized object. Am not sure what, if anything, to make of it with regard to this problem. (Note that /perl-status also doesn't turn up anything obvious, either.)

/cgi-bin/ is as follows:

$VAR1 = bless( { ".parameters" => [], ".charset" => "ISO-8859-1", ".etab" => 1, ".elid" => 1, ".fieldnames" => {}, ".header_printed" => 1, "escape" => 1 }, 'CGI' );
ModPerl is as follows:
$VAR1 = bless( { ".parameters" => [], ".charset" => "ISO-8859-1", ".r" => bless( do{\(my $o = 164475400)}, 'Apache2::RequestRec' ), ".etab" => 1, ".elid" => 1, ".fieldnames" => {}, ".header_printed" => 1, "escape" => 1 }, 'CGI' );

Big question to me is where do I look - mod_include, ModPerl::Registry, or even CGI?

Replies are listed 'Best First'.
Re^14: Apache Registry with Server Side Includes
by Anonymous Monk on Jan 07, 2012 at 15:20 UTC
    aha !
    running the dump before, during and after a series of calls to the test script demonstrated that after the first call (and every other call) to the script, that there was one "count" parameter, and it always remained at 5:
    $VAR1 = bless( { ".parameters" => [ "count" ], "count" => [ 5 ], (... the rest was deleted...)
    but why???

      Aha x2.

      Using this changed the behavior to what I expected:

      CGI::initialize_globals;

      Info found at, where else:

      http://www.perlmonks.org/?node_id=11194

      By googling cgi.pm param caching

      Note that this seemed to clear the params from the object, as shown by the CGIDebug, but did not affect the "count" parameter.

      Thanks for all the help, folks.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://946766]
help
Chatterbox?
[shmem]: Re^5: Understanding endianness of a number - nice! "zigamorph" will be the host name of the VM I'll set up to debug Microfocus COBOL/perl stuff :-D
[prospect]: Hi, to avoid cluthering the Seekers of Perl Wisdom page. I wanted to print out the values on a new line each. So I though I put a . "\n" behind "print foreach func()" but something interesting happens and it I just get "5" as output :p
[prospect]: print foreach func(). "\n"; sub func { return ( 1, 2, 3, 4, 5 ); }
[prospect]: if I remove the ".\n" I get "12345" as output

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2017-07-24 10:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (350 votes). Check out past polls.