Re: Recommended config/ini file module?

2012-05-04 Thread Manfred Lotz
;t > > get previously defined vars to work. > > > > I tried this but to no avail. > > > > > > [Dirs] > > basedir : /data/ > > aroot : ${basedir}/root > > broot : $basedir/root > > The config file is static and does not interpret itself. >

Re: Recommended config/ini file module?

2012-05-03 Thread Michael Rasmussen
reviously defined vars to work. I tried this but to no avail. [Dirs] basedir : /data/ aroot : ${basedir}/root broot : $basedir/root The config file is static and does not interpret itself. To do what I think you're after would require: The ini file: [Dirs] basedir : /data/

Re: Recommended config/ini file module?

2012-05-02 Thread Shekar
You can try - Config::IniFiles too. Thanks, Shekar On Tue, May 1, 2012 at 7:19 PM, Manfred Lotz wrote: > On Tue, 1 May 2012 15:58:49 +0530 > Mohan L wrote: > > > On Tue, May 1, 2012 at 3:28 PM, Manfred Lotz > > wrote: > > > > > Hi there, > > > What is a recommended Module for processing conf

Re: Recommended config/ini file module?

2012-05-01 Thread Manfred Lotz
On Tue, 1 May 2012 15:58:49 +0530 Mohan L wrote: > On Tue, May 1, 2012 at 3:28 PM, Manfred Lotz > wrote: > > > Hi there, > > What is a recommended Module for processing config resp. inifile > > formats? > > > > One important feature I need is to use previously defined entries. > > > > Example:

Re: Recommended config/ini file module?

2012-05-01 Thread Manfred Lotz
On Tue, 1 May 2012 05:57:28 -0700 Michael Rasmussen wrote: > On Tue, May 01, 2012 at 11:58:46AM +0200, Manfred Lotz wrote: > > Hi there, > > What is a recommended Module for processing config resp. inifile > > formats? > > > > One important feature I need is to use previously defined entries. >

Re: Recommended config/ini file module?

2012-05-01 Thread Michael Rasmussen
On Tue, May 01, 2012 at 11:58:46AM +0200, Manfred Lotz wrote: > Hi there, > What is a recommended Module for processing config resp. inifile > formats? > > One important feature I need is to use previously defined entries. Config::Std uses the .INI format and will preserve your comments in additi

Re: Recommended config/ini file module?

2012-05-01 Thread Mohan L
On Tue, May 1, 2012 at 3:28 PM, Manfred Lotz wrote: > Hi there, > What is a recommended Module for processing config resp. inifile > formats? > > One important feature I need is to use previously defined entries. > > Example: > > [General] > base_dir : /somedir > > [Files] > iso_image : ${base_di

Recommended config/ini file module?

2012-05-01 Thread Manfred Lotz
Hi there, What is a recommended Module for processing config resp. inifile formats? One important feature I need is to use previously defined entries. Example: [General] base_dir : /somedir [Files] iso_image : ${base_dir}/x.iso lib : a.so lib : b2.so Multiple entries like 'lib' above is nice

Re: INI file

2002-05-10 Thread Jenda Krynicky
From: "Arran" <[EMAIL PROTECTED]> > How would i read and write to an ini file? There are many modules for this. Config::Ini, Config::IniFile, Win32::FileOp, Win32::IniHash, Win32::AdminMisc, ... You'd find them if you tried http://search.cpan.org Jenda P.

INI file

2002-05-10 Thread Arran
How would i read and write to an ini file? From: Arran song: "If you are sexy and you know it clap your hands" Me: im going to go have to sit this one out... If builders built buildings the way programmers wrote programs, then the first woodpecker to come along would destroy civiliz

Re: Getting the proper info from an INI file...

2002-02-18 Thread Chris
Jenda Krynicky wrote: > From: Chris <[EMAIL PROTECTED]> > Subject: Re: Getting the proper info from an INI file... > > >>Jenda Krynicky wrote: >> >>>What do you get when you run >>> >>> PPM install Confi

Re: Getting the proper info from an INI file...

2002-02-18 Thread Jenda Krynicky
From: Chris <[EMAIL PROTECTED]> Subject:Re: Getting the proper info from an INI file... > Jenda Krynicky wrote: > > What do you get when you run > > > > PPM install Config-IniFiles > > > > ? > > Hmm... Wonder w

Re: Getting the proper info from an INI file...

2002-02-18 Thread Chris
Jenda Krynicky wrote: > From: Chris <[EMAIL PROTECTED]> > >>Unfortunatly, any time I ty to PPM anything from CPAN, I get an >>error... :( >> > > You don't PPM from CPAN. You PPM from ActiveState or > someone else's PPM repository. > > What do you get when you run > > PPM

Re: Getting the proper info from an INI file...

2002-02-18 Thread Jenda Krynicky
From: Chris <[EMAIL PROTECTED]> > Unfortunatly, any time I ty to PPM anything from CPAN, I get an > error... :( You don't PPM from CPAN. You PPM from ActiveState or someone else's PPM repository. What do you get when you run PPM install Config-IniFiles ? Jenda ===

RE: Getting the proper info from an INI file...

2002-02-15 Thread Hanson, Robert
er options will show up. Rob -Original Message- From: Chris [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 2:16 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Getting the proper info from an INI file... > > Unfortunatly, any time I ty to PPM anything from C

Re: Getting the proper info from an INI file...

2002-02-15 Thread Chris
Chris wrote: > Jenda Krynicky wrote: > >> From: Chris <[EMAIL PROTECTED]> >> >>> I found some code, on the net, on access an INI file... >>> >> >> There are about 10 different modules for INI files on CPAN. >> I b

Re: Getting the proper info from an INI file...

2002-02-15 Thread Chris
Chris wrote: > Jenda Krynicky wrote: > >> From: Chris <[EMAIL PROTECTED]> >> >>> I found some code, on the net, on access an INI file... >>> >> >> There are about 10 different modules for INI files on CPAN. >> I b

Re: Getting the proper info from an INI file...

2002-02-15 Thread Chris
Jenda Krynicky wrote: > From: Chris <[EMAIL PROTECTED]> > >>I found some code, on the net, on access an INI file... >> > > There are about 10 different modules for INI files on CPAN. > I bet they'll be better than some code you found

Re: Getting the proper info from an INI file...

2002-02-15 Thread Jenda Krynicky
From: Chris <[EMAIL PROTECTED]> > I found some code, on the net, on access an INI file... There are about 10 different modules for INI files on CPAN. I bet they'll be better than some code you found on the net and they'll be supported. Jenda =

Getting the proper info from an INI file...

2002-02-15 Thread Chris
I found some code, on the net, on access an INI file... I have modified it to try and assign certain values out. Here is the code: my ($iniFile, $UserID, $Tester, $DNS1, $DNS2, $pwd); $iniFile = 'c:\\test.txt'; &readini; print "Tester : $Tester\n"; print &quo