Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Stuck trying to implement Apache2::compat.pm

by bulk88 (Priest)
on Dec 27, 2013 at 02:44 UTC ( #1068469=note: print w/ replies, xml ) Need Help??


in reply to Stuck trying to implement Apache2::compat.pm

Some generic observations since I dont do webdev, mod_perl seems to be written in mostly XS.

perl -MData::Dumper -e "print Dumper(\%main::);"
The sub is simply not defined. Most normal modules have subs living in typeglobs . "*Apache2::ServerUtil::restart_count{CODE}" returns a ref to a sub. You can also use Devel::Peek's Dump() command if Data::Dumper isn't detailed enough. You are probably missing a "require Foo;" or "use Foo;" somewhere. In very rare cases, one piece of code, is monkey patching, or local()izing the glob or the glob's CODE slice, and removing the sub/xsub from view permanently or temporarily. In other rare cases modules use AUTOLOAD to bring a sub into existence the first time it is called.


Comment on Re: Stuck trying to implement Apache2::compat.pm
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2014-09-01 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (14 votes), past polls