There is code available from my wizard at
http://www.rtbaileyphd.com/perlwizard that is doing something fairly similar
to what you described.  Use PerlWizard to generate a simple test program,
run it once, and then examine the contents of the pwiz subirectory, which is
where the config files go.  These are used in conjunction with Getopt::Long
as well.

 

Best Regards,

R. T. Bailey

 

-----Original Message-----
From: lee [mailto:l...@yun.yagibdah.de] 
Sent: Saturday, August 30, 2014 12:09 PM
To: beginners@perl.org
Subject: Re: which module to read configuration file?

 

lee < <mailto:l...@yun.yagibdah.de> l...@yun.yagibdah.de> writes:

 

> Hi,

> 

> is there a module available to read configuration files which are like

> this:

> 

> 

> arbitrary_denominator-00 | alternate-denominator-00 | 

> alternate-denominator-01 [| ...] {

>   itemA = <some string>

>   itemB = <some integer>

>   itemC = <some float>

>   itemD = <some CSV>

> }

 

Following-up my own question: I found [1] which appears to come close to
what I'm looking for.  Of course, I'd still love to hear your ideas :)

 

 

[1]:  <https://metacpan.org/pod/Config::JSON>
https://metacpan.org/pod/Config::JSON

 

 

--

Knowledge is volatile and fluid.  Software is power.

 

--

To unsubscribe, e-mail:  <mailto:beginners-unsubscr...@perl.org>
beginners-unsubscr...@perl.org For additional commands, e-mail:
<mailto:beginners-h...@perl.org> beginners-h...@perl.org
<http://learn.perl.org/> http://learn.perl.org/

 

Reply via email to