in reply to Re: Revision of a Configuration class
in thread Revision of a Configuration class

Thank you very much perrin for your advices. Though, I'm already using one of the thousands config modules available on CPAN :) I'll surely try what you suggested.

I was also looking for an advice on passing a default configuration file via ENV variables, but I didn't get an answer :( May be another module on CPAN could do better than Config::General, but I didn't found it: every modules wants a filename as argument to constructors.

Thanks, Valerio

  • Comment on Re: Re: Revision of a Configuration class

Replies are listed 'Best First'.
Re: Re: Re: Revision of a Configuration class
by perrin (Chancellor) on Sep 05, 2002 at 21:59 UTC
    The modules expect you to pass a filename, but you can get that filename any way you want to. Have your code read %ENV, grab the filename, and pass it to Config::General.

      Sorry, I will stop using Babelfish to translate my questions :) What you described is exactly what I did.

      Thanks, Valerio