perl-Data-Remember-0.140490-alt1.noarch.rpm


Advertisement

Description

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.

Alternatives

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

Requires

Name Value
/usr/share/perl5 -
perl(Class/Load.pm) -
perl(DBM/Deep.pm) -
perl(Scalar/Util.pm) -
perl(Sub/Exporter.pm) -
perl(YAML/Syck.pm) -
perl(base.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Data/Remember.pm) = 0.140.490
perl(Data/Remember/Class.pm) = 0.140.490
perl(Data/Remember/DBM.pm) = 0.140.490
perl(Data/Remember/Hybrid.pm) = 0.140.490
perl(Data/Remember/Memory.pm) = 0.140.490
perl(Data/Remember/POE.pm) = 0.140.490
perl(Data/Remember/Util.pm) = 0.140.490
perl(Data/Remember/YAML.pm) = 0.140.490
perl-Data-Remember = 0.140490-alt1

Download

Type URL
Mirror ftp.altlinux.org
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] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/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

Files

Path
/usr/share/doc/perl-Data-Remember-0.140490/Changes
/usr/share/doc/perl-Data-Remember-0.140490/LICENSE
/usr/share/doc/perl-Data-Remember-0.140490/README
/usr/share/perl5/Data/Remember.pm
/usr/share/perl5/Data/Remember/Class.pm
/usr/share/perl5/Data/Remember/DBM.pm
/usr/share/perl5/Data/Remember/Hybrid.pm
/usr/share/perl5/Data/Remember/Memory.pm
/usr/share/perl5/Data/Remember/POE.pm
/usr/share/perl5/Data/Remember/Util.pm
/usr/share/perl5/Data/Remember/YAML.pm

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
Advertisement
Advertisement