Keep It Simple, Stupid | |
PerlMonks |
Why are you sharing constants in a module?by rrwo (Friar) |
on Nov 24, 2004 at 11:35 UTC ( [id://410112]=note: print w/replies, xml ) | Need Help?? |
This might be completely off the mark, but why are you putting constants in a module instead of a configuration file? If it's to "hide" login information so that it's not in a script where people may be able to see it, that may not be a good idea since anyone who can access the module in a script with a 'use' call can access that information. In some cases it makes more sense to put that information in a separate configuration file that you can restrict access to certain processes. Other advantages of using a configuration file as opposed to a module:
In Section
Seekers of Perl Wisdom
|
|