koldfront

Best practices: Configuration #perl

๐Ÿ•Ÿ๏ธŽ - 2008-07-15

When a module can be passed a reference to some sort of configuration object, the module should not modify the configuration as an undocumented side-effect of calling it.

Sounds reasonable, yes?

Rationale: The caller is quite likely to want to use the same configuration object for several modules.

Not exactly rocket science, right?

Add comment

To avoid spam many websites make you fill out a CAPTCHA, or log in via an account at a corporation such as Twitter, Facebook, Google or even Microsoft GitHub.

I have chosen to use a more old school method of spam prevention.

To post a comment here, you need to:

ยน Such as Thunderbird, Pan, slrn, tin or Gnus (part of Emacs).

Or, you can fill in this form:

+=