| ZConf-DevTemplate documentation | view source | Contained in the ZConf-DevTemplate distribution. |
ZConf::template -
Version 0.0.0
Quick summary of what the module does.
Perhaps a little code snippet.
use ZConf::template;
my $foo = ZConf::template->new();
...
This initializes it.
One arguement is taken and that is a hash.
If this is defined, it will be used instead of creating a new ZConf object.
my $foo=ZConf::template->new;
if($foo->error){
warn('error '.$foo->error.': '.$foo->errorString);
}
This removes the specified ZConf set.
$foo->delSet('someSet');
if($foo->{error}){
warn('error '.$foo->error.': '.$foo->errorString);
}
This returns the ZConf object.
The only time this will error is if a permanent error is set.
my $zconf=$foo->getZConf;
if ($foo->error){
warn('error '.$foo->error.': '.$foo->errorString);
}
This initiates a new set. If a set already exists, it will be overwritten.
If the set specified is undefined, the default will be used.
The set is not automatically read.
$foo->init($set);
if($foo->{error}){
warn('error '.$foo->error.': '.$foo->errorString);
}
This lists the available sets for the ZConf config.
my @sets=$foo->listSets;
if($foo->{error}){
warn('error '.$foo->error.': '.$foo->errorString);
}
This reads a specified ZConf set.
If no set is specified, the default is used.
$foo->readSet('someSet');
if($foo->{error}){
warn('error '.$foo->error.': '.$foo->errorString);
}
This returns the current error code if one is set. If undef/evaulates as false then no error is present. Other wise one is.
if($foo->error){
warn('error '.$foo->error.': '.$foo->errorString);
}
This returns the current error string. A return of "" means no error is present.
my $errorString=$foo->errorString;
This blanks the error storage and is only meant for internal usage.
It does the following.
$foo->{error}=undef;
$foo->{errorString}="";
ZConf errored.
%%%%AUTHOR%%%, <%%%EMAIL%%%>
Please report any bugs or feature requests to bug-zconf-devtemplate at rt.cpan.org, or through
the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=ZConf-template. I will be notified, and then you'll
automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc ZConf::template
You can also look for information at:
Copyright 2009 %%%AUTHOR%%%, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| ZConf-DevTemplate documentation | view source | Contained in the ZConf-DevTemplate distribution. |