Marcin Kasperski wrote:
After some initial consideration I found, that moving config from
MyConfig.pm to myapp.conf does not seem to be reasonable. Imagine
PerlSetVar'ing arrays and hashes which can refer one to another...
If you can do it in a module, you can do it in myapp.conf.

<Perl>
package MyConfigPackage;
use vars qw($complex_var);

$complex_var = { 'foo' => [ 'bar', 'baz' ] };
</Perl>

Personally, I've been pretty happy to keep two config files, since the distinction seems pretty clear to me.

- Perrin



Reply via email to