Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

RE: What are all the means of application configuration?

by Zarathustra (Beadle)
on Oct 03, 2000 at 00:20 UTC ( [id://34973]=note: print w/replies, xml ) Need Help??


in reply to What are all the means of application configuration?

Lets not forget about XML.

XML::Simple makes for an excellent app config also.

app.rc: <app> <db> <username>Python</username> <password>sucks</password> </db> <backup> <machine>guido</machine> <frequency>4 hours</frequency> </backup> <logging> <file>/var/log/applog</file> <level>2</level> </logging> </app>

Derives the same access:

$app->{'db'}->{'username'}
As well as all the good stuff that comes with xml, such as for checking the "config" file ( actually just another xml doc ), for well-formedness and validity. Also, XML will provide ties for easy config-file update and modification via the application itself, should you choose to use something like XML::Writer. A fun and nice way of getting fancy for say, a web editable/creatable configuration file.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-16 20:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found