NAME

RSSCache::Settings - Module to read and access the settings

SYNOPSIS

        #use at startup
        $RSSCache::Settings = RSSCache::Settings->new();
        
        #use within your modules
        $RSSCache::Settings->set('my/setting', 'some value');
        my $value = $RSSCache::Settings->get('my/setting');

DESCRIPTION

Will read the RSSCache.settings file at startup and offers access to these settings.

METHODS

new

Constructor.

Will initialize the settings store and load the settings.

Parameters:

load_settings

Will initialize the settings store and load the settings from the specified file.

If no file is specified, this method will try to load the feil RSSCache.settings.

Parameters:

get

Returns a value from the settings.

Parameters:

set

Works similary to get() but accepts two parameters and lets you set values instead of reading them.

Parameters:

delete

Works similary to get() and set() but instead of reading or writing from or to an entry you simply clear a value of a specific entry.

Parameters:

keys

Returns an array containing all settings keys.

AUTHOR

Copyright 2006 Thomas Wittek (mail at gedankenkonstrukt dot de). All rights reserved.

LICENsE

This document is free software. It is distributed under the same terms as Perl itself.

SEE ALSO

RSSCache