NAME
Config::Constants::XML - Configuration loader for Config::Constants
SYNOPSIS
use Config::Constants::XML;
DESCRIPTION
This module reads and parses XML files as configuration files that look like this:
<config>
<module name='Foo::Bar'>
<constant name='BAZ' value='the coolest module ever' />
</module>
</config>
METHODS
- new ($file)
-
This takes the file, loads, parses and stores the resulting configuration.
- modules
-
This will return an array of modules in this configuration.
- constants ($module_name)
-
Given a
$module_name
, this will return an array of hash references for each constant specified.
TO DO
BUGS
None that I am aware of. Of course, if you find a bug, let me know, and I will be sure to fix it.
CODE COVERAGE
I use Devel::Cover to test the code coverage of my tests, see the Config::Constants module for more information.
SEE ALSO
AUTHOR
stevan little, <stevan@iinteractive.com>
COPYRIGHT AND LICENSE
Copyright 2005 by Infinity Interactive, Inc.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.