Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://418670]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (1)
As of 2022-01-24 23:37 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (65 votes). Check out past polls.