![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re: Calling variables from external file, with strictby danger (Priest) |
on Jun 28, 2002 at 01:11 UTC ( #177903=note: print w/replies, xml ) | Need Help?? |
Do you really need the config file to define lexical variables --- or would populating a config hash suffice? If so there are various config modules on CPAN. A very simple and direct method is to define an anonymous hash in the config file and capture it via require --- as in this node. As erikharrison mentions, any code evaluation solution (as opposed to a parsing solution) means you trust the code in the config file.
In Section
Seekers of Perl Wisdom
|
|