Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: MyModule::BEGIN calls

by integral (Hermit)
on Dec 08, 2003 at 19:39 UTC ( #313199=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://313199]
help
Chatterbox?
[thezip]: How goes it, Corion?
[Corion]: thezip: Quite good, after a one week vacation in the sun ;)
[Corion]: I hope you're well too!
[thezip]: Where did you go? We've already set a record for all-time February rainfall here.
[Corion]: thezip: The Canary Islands - they have a constant climate
[Corion]: Maybe a bit too many old people, but for some do-nothing vacation for R&R exactly the right thing ;)=

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2017-02-23 17:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (349 votes). Check out past polls.