dmitri has asked for the wisdom of the Perl Monks concerning the following question:

Can I fool perl about start of run-time? I am pulling in some modules in the middle of my program, but INIT and CHECK blocks do not work, because they are run _before_ run-time starts.

So, for instance, Attribute::Handlers does not do anything with my code (it defaults to running during CHECK phase). I cannot use BEGIN blocks because by that time subroutines, even though compiled, do not have names (and those are the subroutines, of course, that have attributes in my code).

Any thoughts? Thanks!

  • Comment on Start of runtime and CHECK and INIT blocks.

Replies are listed 'Best First'.
Re: Start of runtime and CHECK and INIT blocks.
by chromatic (Archbishop) on Nov 18, 2002 at 23:47 UTC

    What are you trying to do? Perhaps it will be easier to answer your question with more information.