I did a little searching first but haven't found a satisfactory answer yet (my apologies if this is a repeat question -- or worse, a stupid question)...
Do dynamically loaded Perl modules such as those included with the answer to this question (relevant code replicated below) get properly cached by mod_perl for future usage?
my $module = 'My::Module';
eval {
(my $file = $module) =~ s|::|/|g;
require $file . '.pm';
$module->import();
1;
} or do {
my $error = $@;
# ...
};
In the above example, will "My::Module" be cached by mod_perl after this invocation for future usage if a subroutine similarly tries to require it in the future (at least in whatever manner mod_perl generally uses for package caching)?
Hopefully that question is somewhat clear, please let me know if any clarification is needed. Thanks.