Config::Backend::Registry - a registry backend for Config::Frontend.
Config::Backend::Registry is normally used through Config::Backend::INIREG. But it can also function alone. It provides a backend for Config::Frontend that uses the Windows Registry as configuration base.
Config::Backend::Registry
This module uses Win32::TieRegistry for reading and writing the windows registry. Each call to set() or del() will immediately result in a commit to the Windows registry.
set()
del()
new(appname) --> Config::Backend::Registry
Invoked with an application name, will return a Config::Backend::Registry object that is connected to the windows registry at location HKEY_CURRENT_USER/Software/appname.
HKEY_CURRENT_USER/Software/appname
This function will untie from the registry.
set(var,value) --> void
Sets config key var to value.
get(var) --> string
Reads var from config. Returns undef, if var does not exist. Returns the value of configuration item var, otherwise.
undef
var
del(var) --> void
Deletes variable var from the Configuration.
variables() --> list of strings
Returns all variables set through this backend in the windows registry at location HKEY_CURRENT_USER/Software/appname.
The enumeration functions of Win32::TieRegistry turned out not to work on Win2K. I've programmed a workaround by keeping an administration of variables in the special variable '.vars'.
Win32::TieRegistry
Win2K
'.vars'
Config::Frontend, Win32::TieRegistry.
Hans Oesterholt-Dijkema, <oesterhol@cpan.org>
Copyright 2004 by Hans Oesterholt-Dijkema
This library is free software; you can redistribute it and/or modify it under Artistic license.
To install Config::Backend::INIREG, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Config::Backend::INIREG
CPAN shell
perl -MCPAN -e shell install Config::Backend::INIREG
For more information on module installation, please visit the detailed CPAN module installation guide.