Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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/myalert1.pl green = 0 - 20 yellow = 21 - 40 red = > 40 </ALERT1> <ALERT2> source = /var/etc/myalert2.pl 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://240684]
help
Chatterbox?
[ambrus]: AAAAAAARGH!
[ambrus]: something must be wrong here
[ambrus]: oh I see. I'm stupid
[marto]: hi 1nickt!
[ambrus]: The file I'm reading is already filtered, which is why I found only one kind of entry.
[1nickt]: Sorry to upset you brother Ambrus ...
[1nickt]: Ah not me, good!

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2018-01-23 13:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (246 votes). Check out past polls.

    Notices?