ZConf::template - ZConf::template documentation


ZConf-DevTemplate documentation  | view source Contained in the ZConf-DevTemplate distribution.

Index


NAME

Top

ZConf::template -

VERSION

Top

Version 0.0.0

SYNOPSIS

Top

Quick summary of what the module does.

Perhaps a little code snippet.

    use ZConf::template;

    my $foo = ZConf::template->new();
    ...

METHODS

Top

new

This initializes it.

One arguement is taken and that is a hash.

hash values

zconf

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);
    }

delSet

This removes the specified ZConf set.

    $foo->delSet('someSet');
    if($foo->{error}){
        warn('error '.$foo->error.': '.$foo->errorString);
    }

getZConf

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);
    }

init

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);
    }

listSets

This lists the available sets for the ZConf config.

    my @sets=$foo->listSets;
    if($foo->{error}){
        warn('error '.$foo->error.': '.$foo->errorString);
    }

readSet

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);
    }

ERROR RELATED METHODS

Top

error

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);
    }

errorString

This returns the current error string. A return of "" means no error is present.

    my $errorString=$foo->errorString;

errorblank

This blanks the error storage and is only meant for internal usage.

It does the following.

    $foo->{error}=undef;
    $foo->{errorString}="";

ERROR CODES

1

ZConf errored.

AUTHOR

Top

%%%%AUTHOR%%%, <%%%EMAIL%%%>

BUGS

Top

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.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc ZConf::template




You can also look for information at:

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=ZConf-template

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/ZConf-template

* CPAN Ratings

http://cpanratings.perl.org/d/ZConf-template

* Search CPAN

http://search.cpan.org/dist/ZConf-template/

ACKNOWLEDGEMENTS

Top

COPYRIGHT & LICENSE

Top


ZConf-DevTemplate documentation  | view source Contained in the ZConf-DevTemplate distribution.