kaushal_k1 has asked for the wisdom of the Perl Monks concerning the following question:

Hi , I run mod_perl-1.3 on my apache. I updated mod_perl and now am facing a problem where my env and ${ENV} gets corrupted.When I print it it shows junk characters.

Replies are listed 'Best First'.
Re: PerlPassEnv error
by ww (Archbishop) on Feb 04, 2011 at 11:37 UTC
      Ok let me see how much I can detail I can put here. I have an apache installation for a project where I run apache1.155( internal version most prob apache-1) with mod_perl-1.3. I upgraded mod_perl. Now the prob is I have a lot export VAR . which i parse in apache.conf by "PerpPassEnv Var". When I print these varibles in my pm files "env" or %ENV. I notice garbage which is not happening in previous version of mod_perl. I am running perl-5.10 now whereas the previous installation was perl5.8.
        Well, you see, this is PerlMonks; not "ApacheMonks," and certainly not "psychicMonks." So it's fairly probable that we'll want to know about Perl issues... in detail.

        So it might help us even more (to help you), if you were to reduce whatever Perl (there we go again; Perl!) code that you're using to "parse" and to "print" to the absolute minimum to demonstrate the error by producing the "garbage." and then, if you'll post that code here, along with input and output data (in each case, inside <code>...</code> tags) you'll find that you can provide quite a lot of detail.

        You might also want to be very precise about whether "garbage" first appeared just as soon as you upgraded mod_perl; just as soon as you switched to 5.10 (at the same you upgraded mod_perl?) ... and, WAG, whether your current installation involved any other changes than those you've mentioned.