perl-Eval-Reversible-0.90-alt1.noarch.rpm


Advertisement

Description

perl-Eval-Reversible - Evals with undo stacks

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package filename perl-Eval-Reversible-0.90-alt1.noarch.rpm
Package name perl-Eval-Reversible
Package version 0.90
Package release alt1
Package architecture noarch
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 13.43 KB
Installed size 13.43 KB
Run code and automatically reverse their side effects if the code fails.  This is done by
way of an undo stack.  By calling the add_undo entry elsewhere in this document right after a side effect, the effect is
undone on the event that the the run_reversibly entry elsewhere in this document sub dies.  For example:
$reversible->run_reversibly(sub {
print "hello\n";
$reversible->add_undo(sub { print "goodbye\n" });
die "uh oh\n" if $something_bad;
});
This prints "hello" if `$something_bad' is false.  If it's true, then both "hello" and
"goodbye" are printed and the exception "uh oh" is rethrown.
Upon failure, any code refs provided by calling the add_undo entry elsewhere in this document are executed in reverse
order.  Conceptually, we're unwinding the stack of side effects that `$code' performed
up to the point of failure.

Alternatives

Package Version Architecture Repository
perl-Eval-Reversible - - -

Requires

Name Value
/usr/share/perl5 -
perl(Moo.pm) >= 2.0
perl(MooX/HandlesVia.pm) -
perl(Scalar/Util.pm) >= 1.250
perl(Types/Standard.pm) >= 1.0
perl(namespace/clean.pm) -
perl-base >= 1:5.10.0
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Eval/Reversible.pm) = 0.900
perl-Eval-Reversible = 0.90-alt1

Download

Type URL
Mirror ftp.altlinux.org
Binary Package perl-Eval-Reversible-0.90-alt1.noarch.rpm
Source Package perl-Eval-Reversible-0.90-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-Eval-Reversible rpm package:
    # sudo apt-get install perl-Eval-Reversible

Files

Path
/usr/share/doc/perl-Eval-Reversible-0.90/README
/usr/share/perl5/Eval/Reversible.pm

See Also

Package Description
perl-Eval-Util-0.002-alt1.noarch.rpm Utilities related to eval()
perl-EveOnline-Api-0.051-alt1.noarch.rpm the Perl version of the Eve Online API system
perl-EveOnline-SSO-0.03-alt1.noarch.rpm Module for Single Sign On in EveOnline API-services
perl-Event-Distributor-0.05-alt1.noarch.rpm a simple in-process pub/sub mechanism
perl-Event-File-0.1.1-alt2_11.noarch.rpm Mimic the 'tail -f' behaviour using Event
perl-Event-IO-0.01-alt1.noarch.rpm perl module Event-IO
perl-Event-Join-0.06-alt1.noarch.rpm join multiple "events" into one
perl-Event-Schedule-0.02-alt1.noarch.rpm A simple way to organize timed events in, say, an IRC bot
perl-Event-ScreenSaver-0.0.6-alt1.noarch.rpm Provides the ability to hook functions to the starting
perl-Event-ScreenSaver-scripts-0.0.6-alt1.noarch.rpm Event-ScreenSaver scripts
perl-Event-SlidingWindow-0.05-alt1.noarch.rpm perl module Event-SlidingWindow
perl-EventStore-Tiny-0.6-alt2.noarch.rpm A minimal event sourcing framework
perl-Evented-API-Engine-4.11-alt1.noarch.rpm Evented API Engine for Perl applications
perl-Evented-Configuration-4.02-alt1.noarch.rpm an evented configuration file in a unique and clean format
perl-Evented-Object-5.65-alt1.noarch.rpm fire events on objects
Advertisement
Advertisement