On 2014-06-01 14:09:35, rwfranks@acm.org wrote:
Show quoted text> On Sun Jun 01 13:29:39 2014, SREZIC wrote:
>
> > What you can do is to cease this warning category:
>
> Which is fine for my purposes.
>
> But the general point remains: the INIT block never gets run with
> "require".
>
> The documentation does not make that clear, or if it does, I failed to
> find it.
It is documented in perlmod.pod:
The "CHECK" and "INIT" blocks in code compiled by "require", string
"do", or string "eval" will not be executed if they occur after the end
of the main compilation phase; that can be a problem in mod_perl and
other persistent environments which use those functions to load code at
runtime.
IMHO this restriction limits the usefulness of INIT; it's quite normal to load perl code at runtime.