Config::FreeForm

Config::FreeForm is a Perl module that provides in-memory configuration data.
Download

Config::FreeForm Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Benjamin Trott
  • Publisher web site:
  • http://search.cpan.org/~btrott/

Config::FreeForm Tags


Config::FreeForm Description

Config::FreeForm is a Perl module that provides in-memory configuration data. Config::FreeForm is a Perl module that provides in-memory configuration data.SYNOPSIS use Config::FreeForm %options;Config::FreeForm provides in-memory configuration data in a free-form manner. Many existing configuration modules attempt to provide some structure to your configuration data; in doing so, they force you to use their own configuration paradigm (association of keywords with values, etc.). Often this isn't what you need in a complex application--you need complete control over your configuration data, and you need the ability to structure it however you like. This is what Config::FreeForm gives you.In Config::FreeForm configuration data is stored as a Perl data structure. The logic behind this is that you know Perl--you shouldn't need to learn another little language to set up your configuration data, however simple that language may be. Of course, this works best if programmers or tools do the updating of your configuration files; it does make it more difficult for other possible users to edit the files. If this is a problem for you, try some of the other configuration modules listed in MISCELLANEOUS.Still here? Good. You might then ask what Config::FreeForm gives you that rolling your own light module using Data::Dumper and do would not. It's a good question, considering in particular that Config::FreeForm uses Data::Dumper and do to write and read your data, respectively. Config::FreeForm adds some very nice features, though:Configuration File Management So as not to clutter one file with configuration for all purposes, you can separate your configuration data into multiple files, and specify which files to load when you load in the module: use Config::FreeForm sets => ;Config::FreeForm manages the various configuration files that you've told it to load, and lets you update your data in memory, then write it back to its original location on disk, using the rewrite function (below, in UPDATING CONFIGURATION).Automated ReloadingIn a mod_perl context, your configuration data will be loaded once, at webserver startup; subsequent access to the configuration data will come from memory. If you update your configuration on disk, then, you'll want those changes to be reflected in the in-memory versions of the configuration. Config::FreeForm will handle this automatically for you if you install it as a PerlInitHandler on your mod_perl-enabled server. For more details, see AUTOMATED RELOADING, below. Requirements: · Perl


Config::FreeForm Related Software