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

Re^3: Configuration files

by qq (Hermit)
on Jan 01, 2005 at 18:29 UTC ( #418670=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Configuration files
in thread Configuration files

You could do worse that Config::Tiny. Its INI file format, which is familiar to many, pure perl, and very short. So you include it in the distribution, or copy/paste it in.


Comment on Re^3: Configuration files
Re^4: Configuration files
by gaal (Parson) on Jan 01, 2005 at 18:37 UTC
    The OP specified he needed complex data structures, which Config::Tiny does not support. (I like it too though!)

      Its not really clear how much is needed: "assign values to arrays and hashes" covers a wide range. INI does not get you very far, of course, and I often have comma separated values on one line. But the code is nice if the OP just needs something to work from.

      On the question of 'additional modules', what you've tried to explain above is true. If you are distributing a script, there is really no difference to distributing it with the addition of another pure perl file that just happens to be a CPAN module rather than one you've written yourself. You can even inline it in the main script if just having one file eases people's concerns.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2014-08-28 08:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (258 votes), past polls