The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Config::PP - lightweight configuration file manager that uses Pure Perl to serialize.

SYNOPSIS

  use Config::PP; # exports config_set() and config_get()

  config_set "example.com", {
    email    => 'foo@example.com'
    password => 'barbaz'
  };

  print Dumper config_get "example.com";

DESCRIPTION

Config::PP is lightweight configuration file manager that uses Pure Perl to serialize.

FUNCTIONS

config_set() and config_get() throw exception on error.

config_set $namespace, $configuration

Saves configuration file into "$Config::PP::DIR/$namespace.pl".

config_get $namespace

Loads configuration from "$Config::PP::DIR/$namespace.pl".

Configuration Variables

$Config::PP::DIR

Default directory is "$ENV{HOME}/.ppconfig".

You can configure the path to save configuration file.

AUTHOR

punytan <punytan@gmail.com>

SEE ALSO

Config::Pit

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.