Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: module with external file

by bellaire (Hermit)
on Dec 12, 2009 at 12:59 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found