Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^4: Update config file parameters

by afoken (Chancellor)
on Jan 08, 2016 at 20:14 UTC ( [id://1152338]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Update config file parameters
in thread Update config file parameters

I did not know require would execute the content of the file.

Think about it: How else could require and use (which is just require wrapped in a BEGIN block, and optionally a call to an import method) load and initialise a perl module? How would module Foo load a module Bar that it depends on, if not by executing use or requrie in Foo when the main program requires or uses Foo?

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^5: Update config file parameters
by dbuckhal (Chaplain) on Jan 09, 2016 at 00:15 UTC

    I did "think about it" after your post, and already peeked at the docs...

    Thanks, again.

Log In?
Username:
Password:

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

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

    No recent polls found