Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: module with external file

by bellaire (Hermit)
on Dec 12, 2009 at 12:59 UTC ( #812514=note: print w/replies, xml ) Need Help??

in reply to module with external file

There is no single best practice. Different people have different preferences and practices, including (and not limited to):
  • Using plain Perl data structures in a separate "Config" module
  • INI-style config files via e.g. Config::IniFiles
  • YAML
  • XML
  • JSON
Here's a couple of other useful nodes where discussion has taken place:

Replies are listed 'Best First'.
Re^2: module with external file
by spiros (Beadle) on Dec 12, 2009 at 16:41 UTC
    Hello, thanks for the reply - I apologise if my question was not clear. I know how to create and manipulate config files in general. What I am after is any good practices of having a distribution with a config file. Is it as simple as creating a .conf and having it in the same directory? Does CPAN installation support this etc thanks Spiros
      Oh, in that case you can look at something like Module::Install::Share for handling the installation of non-code files with your distribution.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2019-10-18 11:37 GMT
Find Nodes?
    Voting Booth?