new(appname) -> Config::Backend::RegistryDESTROY()set(var,value) -> voidget(var) -> stringdel(var) -> voidvariables() -> list of strings
Config::Backend::Registry - a registry backend for Config::Frontend.
Config::Backend::Registry is normally used through the Config::Backend::INIREG manpage.
But it can also function alone. It provides a backend for the Config::Frontend manpage
that uses the Windows Registry as configuration base.
This module uses the Win32::TieRegistry manpage 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.
DESTROY()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.