Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^3: Update config file parameters

by dbuckhal (Hermit)
on Jan 08, 2016 at 05:09 UTC ( #1152263=note: print w/replies, xml ) Need Help??

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

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

Very good to know. I am glad you found my post and corrected it.


Replies are listed 'Best First'.
Re^4: Update config file parameters
by afoken (Canon) on Jan 08, 2016 at 20:14 UTC
    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?


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

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

      Thanks, again.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2022-01-24 13:23 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (64 votes). Check out past polls.