Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: dynamically loading modules/maintaining dev v. prod modules

by HyperZonk (Friar)
on Jul 28, 2001 at 03:01 UTC ( [id://100479]=note: print w/replies, xml ) Need Help??


in reply to dynamically loading modules/maintaining dev v. prod modules

Enclose your code above in a BEGIN block. It will be evaluated at compile-time.

Update: Drat! Beaten to the punch again!

Update 2

Well, I'll be snookered! I wasn't sure about that behavior (though I should know to trust wog by now), because BEGIN also runs at compile time, but I tested it and indeed, it is so! My most humble apologies and wog++.

-HZ
  • Comment on Re: dynamically loading modules/maintaining dev v. prod modules

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://100479]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-19 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found