Copyright (C) 2008 by Nik Ogura. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Bug reports and comments to firstname.lastname@example.org.
use CGI::Lazy; my $q = CGI::Lazy->new('/path/to/config/file'); my $c = $q->config; my $prop = $c->property1; #getter $c->property1('foo'); #setter
Internal module used for parsing config file and getting/ setting values from same.
Configuration values are accessed by calling the property name on the config object without arguments.
The same method doubles as a setter if called with arguments.
Returns the name of the config file the object is based on
Static accessor method. Use in places where autoloading isn't appropriate. e.g $q->widget->"somestring".$variable or some such nonsense.
name of the property to retrieve
Constructor. Creates and returns the config object.
Hashref containing initialization variables, or absolute path to config file.
CGI::Lazy::Config uses an autoloader to get and set its properties. You can access any property by calling $q->config->var where var is the name of the property.
Static property setter. For use when autoloading isn't possible.
Name of property
Value of property