in reply to Reading and Writing Perl Config Files
Thank you very much,jdhedden for this excelent lesson of OO use of this basic config file style!
Wherever I lay my KNOPPIX disk, a new FREE LINUX nation could be established
I agree that there are several interesting aproaches to standarize config files. I also prefer the Apache config way. OTH, I should better prefer an XML way. I know.
But this is similar to what I use in my personal config files. And in this OO way, I won't feel guilty when keeping on doing so, programatically. It is error prone!
I should only point out that it is not possible to keep a special order in the variables, because of the hash nature of these config files.
But it is Ok for me and my scripts :)
{ | \ | ( | ' | v | ' | ) | / | } | ||||||||||||||||||||||||||||||
( | \ | _ | / | ) | _ | _ | _ | _ | ` | ( | ) | ' | _ | _ | _ | _ | ||||||||||||||||||||||
( | = | ( | ^ | Y | ^ | ) | = | ( | _ | _ | ^ | ^ | ^ | ^ | ||||||||||||||||||||||||
_ | _ | _ | _ | \ | _ | ( | m | _ | _ | _ | m | ) | _ | _ | _ | _ | _ | _ | _ | _ | _ | ) | c | h | i | a | n | o | , | a | l | b | e | r | t | o |
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Reading and Writing Perl Config Files
by simul (Novice) on Feb 19, 2009 at 03:22 UTC | |
by Anonymous Monk on Mar 27, 2009 at 01:33 UTC | |
by Anonymous Monk on Apr 20, 2009 at 20:52 UTC | |
by Anonymous Monk on Mar 06, 2011 at 09:31 UTC |
In Section
Cool Uses for Perl