
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.

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.
new(appname) --> Config::Backend::RegistryInvoked 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.
This function will untie from the registry.
set(var,value) --> voidSets config key var to value.
get(var) --> stringReads var from config.
Returns undef,
if var does not exist.
Returns the value of configuration item var,
otherwise.
del(var) --> voidDeletes variable var from the Configuration.
variables() --> list of stringsReturns 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'.

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.