perl-Method-Cascade - Use method chaining with any API

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Method-Cascade
Package version 0.101
Package release alt2
Package architecture noarch
Package type rpm
Installed size 6.50 KB
Download size 6.50 KB
Official Mirror
This module exports one function: `cascade'. You should pass it the object that you would like to chain/cascade method calls on. It will return a wrapper object that forwards all method calls to the object you passed in. After forwarding, it returns the same wrapper object.
Because return values are ignored (the methods are in fact called in void context), method cascading is most useful when used with APIs that throw exceptions instead of returning error values. For instance, with the DBI manpage, as long as `RaiseError' is true and `AutoCommit' is false you can safely do the following:
cascade($dbh)->do("INSERT INTO admins (name) VALUES (?)", undef, $user)
->do("DELETE FROM users WHERE name=?", undef, $user)


Package Version Architecture Repository
perl-Method-Cascade - - -


Name Value
/usr/share/perl5 -
perl( -
rpmlib(PayloadIsLzma) -


Name Value
perl(Method/ = 0.101
perl-Method-Cascade = 0.101-alt2


Type URL
Binary Package perl-Method-Cascade-0.101-alt2.noarch.rpm
Source Package perl-Method-Cascade-0.101-alt2.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-Method-Cascade rpm package:
    # sudo apt-get install perl-Method-Cascade



See Also

Package Description
perl-Method-Declarative-0.03-alt1.noarch.rpm Create methods with declarative syntax
perl-Method-Extension-0.1-alt1.noarch.rpm Method Extension port for perl
perl-Method-ParamValidator-0.15-alt1.noarch.rpm Configurable method parameter validator
perl-Method-Signatures-20170211-alt1.noarch.rpm Method and function declarations with signatures and no source filter
perl-Method-Signatures-PP-0.000005-alt1.noarch.rpm EXPERIMENTAL pure perl method keyword
perl-Method-Signatures-Simple-1.07-alt2_8.noarch.rpm Basic method declarations with signatures, without source filters
perl-Method-Signatures-WithDocumentation-1.000-alt1.noarch.rpm use Method::Signatures with Sub::Documentation together
perl-Method-Slice-0.02-alt1.noarch.rpm A slice of method calls within an object
perl-Method-Specialize-0.01-alt1.noarch.rpm perl module Method-Specialize
perl-Method-Utils-0.03-alt1.noarch.rpm functional-style utilities for method calls
perl-Method-WeakCallback-0.04-alt1.noarch.rpm Call back object methods through weak references
perl-Mew-1.002003-alt1.noarch.rpm Moo with sugar on top
perl-Mewsoft-Pagination-0.40-alt1.noarch.rpm perl module Mewsoft-Pagination
perl-Mic-0.001004-alt1.noarch.rpm Messages, Interfaces and Contracts
perl-Micro-Container-0.03-alt1.noarch.rpm Lite weight and inheritable object container