Just another Perl shrine | |
PerlMonks |
Re: Re: MyModule::BEGIN callsby integral (Hermit) |
on Dec 08, 2003 at 19:39 UTC ( [id://313199]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|