Babble::Utils - Non-essential Babble extensions and utility methods
use Babble::Utils; my $babble = Babble->new ( -cache => { -cache_fn => 'cache.db', -cache_fields => ['id', 'date'], }, ); ... $babble->collect_feeds (); $babble->cache () ...
Babble::Utils provides non-essential extensions to a Babble object. All methods herein fall under the Babble namespace, and are available with every Babble instance one makes, when this module is in use.
Babble::Utils
Babble::Utils provides the following methods:
This function does item caching. It goes over all the items in the Babble object, and stores them in a cache, if they're not present. If they are already present in there, the keys specified in the -cache_fields parameter will be used instead of the items respective keys (ie, the items keys will be replaced from values from the cache). This can be used to cache the approximate date of items which didn't come with a date field by default.
This is just a wrapper around Babble::Cache, really.
Gergely Nagy, algernon@bonehunter.rulez.org
Bugs should be reported at http://bugs.bonehunter.rulez.org/babble.
Babble, Babble::Cache
To install Babble, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Babble
CPAN shell
perl -MCPAN -e shell install Babble
For more information on module installation, please visit the detailed CPAN module installation guide.