Is it possible in to detect in web app run under mod_perl if it is run using ModPerl::Registry?
I want to write script which would run under ModPerl::Registry (or similar handler), but can function also as mod_perl response handler.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ModPerl::Registry does an elaborate dance to isolate your code from everything else in the system, and part of that is compiling it into a package beneath
ModPerl::ROOT.When called in list context with an argument specifying the number of frames to go back,
callerreturnswhere the
$subroutinevalue is a fully-qualified name.ModPerl::Registry wraps your entire program in a sub named
handlerin the aforementioned artificial package, so from your main program, use a test similar to