Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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.

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://418670]
[marto]: "My solution is I just don’t use these tools anymore".
[ambrus]: Corion: Maybe I'm not explaining the situation clearly enough, maybe I'm just wrong and he's right and we can compute that data,
[ambrus]: but hopefully he just wants to think it through himself his way and understand why it's impossible rather than blindly accept my argument.
choroba quickly peeps in from a café
[1nickt]: Good morning Monks of the world!

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2017-12-12 13:28 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (332 votes). Check out past polls.