in reply to Config files

Take a look at Config::Simple and Config::Tiny.

Config::Tiny in particular looks like a Windows .ini file --

[section-name] var1=value1 var2=value2 [another section] var3=value3
That should be relatively easy for 'non-Perl' users sensibilities.

----
I Go Back to Sleep, Now.

OGB

Replies are listed 'Best First'.
Re^2: Config files
by sparkel (Acolyte) on Dec 07, 2004 at 01:32 UTC
    yeah I am using this config style:

    But if I have :

    [section] var1=value1 var2=value1/value2 [another section] var3=value1/value3

    Since value1 is repeated so many times, how would you suggest I write the config file?

    So since:
    var1 = value1 and
    var2 = value1/value2

    Should I make
    var2 = var1 . '/value2' or
    var2 = var1 + /value2

    Hope I was clear...please let me know if you didn't understand.

    Thanks.