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

Re^2: Best practice for configuration variables stored in external file

by afoken (Parson)
on Sep 06, 2013 at 19:33 UTC ( #1052757=note: print w/ replies, xml ) Need Help??


in reply to Re: Best practice for configuration variables stored in external file
in thread Best practice for configuration variables stored in external file

Constants belong into the code. Configuration options don't.

Alexander

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


Comment on Re^2: Best practice for configuration variables stored in external file
Re^3: Best practice for configuration variables stored in external file
by tunafish (Acolyte) on Sep 08, 2013 at 01:51 UTC

    I think then that I'm talking about "constants", not "configuration variables". They are not, at any point, edited from within the script.

    Would "use Module" then be the best way to handle this?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (12)
As of 2014-07-10 11:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (207 votes), past polls