;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.
>
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/
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
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:
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.
>
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
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
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
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.
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
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
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
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
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
===
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
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
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
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
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
=
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
20 matches
Mail list logo