in reply to Re: MyModule::BEGIN calls
in thread MyModule::BEGIN calls
BEGIN blocks are called during compilation, since use internally uses the same mechanisms as require, modules are only loaded once. This means that top-level code and BEGIN blocks in the module are only executed once. This means that even 74 use MyModule statements aren't going to run those BEGIN blocks more than once.
--
integral
|
---|
In Section
Seekers of Perl Wisdom