Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Reading and *writing* configuration files

by Fletch (Bishop)
on Apr 09, 2002 at 02:08 UTC ( [id://157628]=note: print w/replies, xml ) Need Help??


in reply to Reading and *writing* configuration files

Another option would be to use something like Template Toolkit to process a skelleton file. If the user has any non-standard edits, they can place them in the skelleton file and they'll be preserved in the output. That of course requires some handwaving if the user expects something of theirs to override the generated output (perhaps use some sort of directive which sets a variable that the generated portion inspects).

Replies are listed 'Best First'.
Re: Re: Reading and *writing* configuration files
by mrbbking (Hermit) on Apr 09, 2002 at 12:10 UTC
    Text::Template might be worth looking at, too. I use that one for Java Servlet configs.
    One of these days, I'll get around to playing with Template Toolkit... I continue to hear much good about it.
Re: Re: Reading and *writing* configuration files
by gloryhack (Deacon) on Apr 10, 2002 at 23:41 UTC
    Also worth looking into, for its simplicity if for no other reason, is CGI::FastTemplate. The "CGI" in its name can be misleading -- it's just a darn fine template parser. I use it all the time, and often for things that get nowhere near the web.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-03-28 16:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found