perl-Data-Remember - remember complex information without giving yourself a headache

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package filename perl-Data-Remember-0.140490-alt1.noarch.rpm
Package name perl-Data-Remember
Package version 0.140490
Package release alt1
Package architecture noarch
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 73.19 KB
Installed size 73.19 KB
While designing some IRC bots and such I got really tired of statements that looked like:.
$heap->{job}{$job} = {
source  => $source,
dest    => $destination,
options => $options,
and later:
if ($heap->{job}{$job}{options}{wibble} eq $something_else) {
I could simplify things with intermediate variables, but then I inevitably end up with 4 or 5 lines of init at the start or middle of each subroutine. Yech.
So, I decided that it would be nice to simplify the above to:
remember [ job => $job ], {
source  => $source,
dest    => $destination,
options => $options,
and later:
if (recall [ job => $job, options => 'wibble' ] eq $something_else) {
Which I consider to far more readable.
The second aspect that this deals with is long-term storage. I started using the DBM::Deep manpage to remember the important bits of state across bot restarts. This package will store your information persistently for you too if you want:
use Data::Remember DBM => 'state.db';
By using that command, the the Data::Remember::DBM manpage "brain" is used instead of the usual the Data::Remember::Memory manpage brain, which just stores things in a Perl data structure.


Package Version Architecture Repository
perl-Data-Remember - - -


Name Value
/usr/share/perl5 -
perl(Class/ -
perl(DBM/ -
perl(Scalar/ -
perl(Sub/ -
perl(YAML/ -
perl( -
rpmlib(PayloadIsLzma) -


Name Value
perl(Data/ = 0.140.490
perl(Data/Remember/ = 0.140.490
perl(Data/Remember/ = 0.140.490
perl(Data/Remember/ = 0.140.490
perl(Data/Remember/ = 0.140.490
perl(Data/Remember/ = 0.140.490
perl(Data/Remember/ = 0.140.490
perl(Data/Remember/ = 0.140.490
perl-Data-Remember = 0.140490-alt1


Type URL
Binary Package perl-Data-Remember-0.140490-alt1.noarch.rpm
Source Package perl-Data-Remember-0.140490-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Data-Remember rpm package:
    # sudo apt-get install perl-Data-Remember



See Also

Package Description
perl-Data-RenderAsTree-1.03-alt2.noarch.rpm Render any data structure as an object of type Tree::DAG_Node
perl-Data-Report-0.10-alt1_27.noarch.rpm A flexible plugin-driven reporting framework
perl-Data-ResourceSet-0.00003-alt1.noarch.rpm A Bundle Of Resources
perl-Data-Result-1.0003-alt1.noarch.rpm Handling true and false in a better way!
perl-Data-ResultSet-1.001-alt1.noarch.rpm Container for aggregating and examining multiple results
perl-Data-ResultsHelper-1.04-alt1.noarch.rpm perl module Data-ResultsHelper
perl-Data-Riak-2.0-alt1.noarch.rpm An interface to a Riak server
perl-Data-Riak-Fast-0.03-alt1.noarch.rpm more fast interface to a Riak Server
perl-Data-Rlist-1.44-alt1.noarch.rpm perl module Data-Rlist
perl-Data-RoundRobin-0.03-alt1.noarch.rpm Serve data in a round robin manner
perl-Data-RoundRobinShared-0.11-alt1.noarch.rpm Serve data in a round robin manner, keeping the data in a shared memory so that it can be used by m
perl-Data-RuledCluster-0.07-alt1.noarch.rpm clustering data resolver
perl-Data-RuledValidator-0.13-alt1.noarch.rpm data validator with rule
perl-Data-RuledValidator-Plugin-Japanese-0.04-alt1.noarch.rpm Data::RuledValidator plugin for Japanese
perl-Data-RunningTotal-0.03-alt1.noarch.rpm Module that allow you to keep track of running totals within a