From: "Jim Green" <student.northwest...@gmail.com>
Hello:

I am confronted with a task of creating a package to manipulate a set
of configuration files.

for example I need to setup up a server and need to change lots of
configuration files and create necessary sections, change values in
the file etc. Also sometimes I modify the server set up and need to
change something(values, sections etc) in the group of configuration
files.

my first thought is to write a perl module that each method use open
to open those files and use regex to manipulate those files. those
files are homemade, not standard format like xml or yaml.. but i kind
of not like it... because it is too raw.

I am learning object oriented programming and want to try out object
oriented perl on this module. this is a good exercise.  I looked at
moose, could anyone some advice on how to design the api of the module
how to make it object oriented? even use moose?

Thank you very much!!

Jim



If you need to manipulate configuration files, the best idea is to use one of the already made modules for this job, like Config::Any.
This module allows you to manipulate more types of configuration files.

Octavian


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to