Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Config File Layout
Perlers,

 

I'm working on a script that will need to email clients if it finds
files in their respective outbound directories.  I've decided on a
simple config file:

 

[foo]

someone@here.com

 

[bar]

nobody@there.org

everybody@place.net

 

 

I've written a simple parser but it doesn't check for incorrect syntax.
I looked at some of the Config:: modules and they appear to require
Name=Value pairs.

 

So my question is one of design; should I use the name=value pairing and
one of the Config:: modules, or just leave it as is?  I'm going to be
the only one maintaining the config file but, of course, I want the
script and config file to be maintainable even if I'm not around.

 

ry



Report this thread to moderator Post Follow-up to this message
Old Post
Ryan Frantz
10-21-05 02:55 AM


Re: Config File Layout
Ryan Frantz wrote:
> Perlers,
>
>
>
> I'm working on a script that will need to email clients if it finds
> files in their respective outbound directories.  I've decided on a
> simple config file:
>
>
>
> [foo]
>
> someone@here.com
>
>
>
> [bar]
>
> nobody@there.org
>
> everybody@place.net
>
>
>
>
>
> I've written a simple parser but it doesn't check for incorrect syntax.
> I looked at some of the Config:: modules and they appear to require
> Name=Value pairs.
>
>
>
> So my question is one of design; should I use the name=value pairing and
> one of the Config:: modules, or just leave it as is?  I'm going to be
> the only one maintaining the config file but, of course, I want the
> script and config file to be maintainable even if I'm not around.
>
>

One of the Config:: modules should handle your format above. You might
also consider AppConfig,

http://search.cpan.org/~abw/AppConf...ib/AppConfig.pm

HTH,

http://danconia.org

>
> ry
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
Wiggins d'Anconia
10-21-05 02:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:25 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.