Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 pondering the Monastery: (13)
As of 2014-08-27 16:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (244 votes), past polls