Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Basic mod-perl question : why my variable is undefined ?

by sundialsvc4 (Abbot)
on Jul 23, 2014 at 11:03 UTC ( #1094766=note: print w/ replies, xml ) Need Help??


in reply to Basic mod-perl question : why my variable is undefined ?

Well, first of all, the usual questions ... do you have use strict; use warnings; and in that situation does it “compile cleanly?”

Next, well, there is no such thing as “sometimes, not always.”   What you are dealing with here is a bug ... in your code.   Somewhere.   That bug is probably located in the bit of code that you elided out, the second time, with "...".   I do not believe that this has anything in particular to do either with mod_perl nor the Registry.

In addition, I suggest that you should put all your code together, in subroutines, and not put subroutines in-the-middle.   Let the code-paths be obvious, and contiguous.


Comment on Re: Basic mod-perl question : why my variable is undefined ?
Re^2: Basic mod-perl question : why my variable is undefined ?
by pcouderc (Beadle) on Jul 23, 2014 at 11:44 UTC
    Thank you. Well, I fear that you answer without knowing mod_perl. I suggest you read that http://perl.apache.org/docs/1.0/guide/porting.html#Exposing_Apache__Registry_secrets

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1094766]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2014-11-20 23:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (103 votes), past polls