Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: More than just a config file

by zengargoyle (Deacon)
on Mar 05, 2003 at 20:01 UTC ( #240684=note: print w/ replies, xml ) Need Help??

in reply to More than just a config file

how about Config::General?

# myconfig <ALERT1> source = /var/etc/ green = 0 - 20 yellow = 21 - 40 red = > 40 </ALERT1> <ALERT2> source = /var/etc/ green = IN ('a','b','c') yellow = IN ('d', 'e') red = OTHERWISE </ALERT2> ...

you still have to parse the values of your settings (like IN and OTHERWISE). but it's quite readable and parseable by Config::General.

Comment on Re: More than just a config file
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://240684]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2016-02-09 02:09 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (297 votes), past polls