![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
For "reasons", I'm loading a few Plack apps under mod_perl via Plack::Handler::Apache2. During a recent tidy up, I've been moving from one vhost entry per app, to a single vhost entry that uses Plack::App::URLMap, and adding an explicit load of all app modules pre-fork. Loader app look like this
For two example Dancer apps like this, it works as expected: But when I switch to the proper apps, I hit a problem. In the app, I have the code: use My::App qw(exported_method); That app does not appear to load. I see no error thrown. however, if I change the line to My::App->import('exported_method'); it works as expected. I've been scratching my head over this for a few days now, and wondered if anyone has hit anything like this before, or has any pointers on where I should be digging to work this one out. It looks like things start behaving if I remove the Module::Load code and don't preload everything (but loading the app this way doesn't preload all the app's dependancies).
|
|