So I was wondering what the best practice is for storing constants in an external file. I have scripts that I wrote before I heard of "use strict". The scripts share a configuration file, conf.pl, that defines things like database name, database user and password, paths to various folders, etc. Currently, the format is:
$constant_name = "constant_value";I know this is wrong. What's the best way to do this?
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |