perl-Object-Tap - Tap into a series of method calls to alter an object

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Object-Tap
Package version 1.000006
Package release alt1
Package architecture noarch
Package type rpm
Installed size 19.40 KB
Download size 19.40 KB
Official Mirror
Instead of writing -
my $thing = My::Class->new(...);
you can instead write -
use Object::Tap;
my $thing = My::Class->new(...)->$_tap(sub { $_[0]->set_foo(1) });
To realise why this might be useful, consider instead -
where a variable is thereby not required at all.
You can also pass extra args -
$obj->$_tap(sub { warn "Got arg: $_[1]" }, 'arg');
or use a method name instead of a sub name -
my $thing = My::Class->new(...)->$_tap(set_foo => 1);


Package Version Architecture Repository
perl-Object-Tap - - -


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


Name Value
perl(Object/ = 1.0.006
perl-Object-Tap = 1.000006-alt1


Type URL
Binary Package perl-Object-Tap-1.000006-alt1.noarch.rpm
Source Package perl-Object-Tap-1.000006-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-Object-Tap rpm package:
    # sudo apt-get install perl-Object-Tap



See Also

Package Description
perl-Object-Tiny-1.09-alt1_1.noarch.rpm Class building as simple as it gets
perl-Object-Tiny-Lvalue-1.083-alt1.noarch.rpm minimal class builder with lvalue accessors
perl-Object-Tiny-RW-1.07-alt1.noarch.rpm A date object with as little code as possible (and rw accessors)
perl-Object-Tiny-RW-XS-0.03-alt1.noarch.rpm A date object with as little code as possible (and rw accessors)
perl-Object-Tiny-XS-1.01-alt1_11.noarch.rpm Class building as simple as it gets and FAST
perl-Object-Trampoline-1.42-alt1.noarch.rpm delay object construction, and optinally using the class' module, until a method is actually dispat
perl-Object-Transaction-1.01-alt1.noarch.rpm perl module Object-Transaction
perl-Object-Transaction-scripts-1.01-alt1.noarch.rpm Object-Transaction scripts
perl-Object-Util-0.010-alt1.noarch.rpm a selection of utility methods that can be called on blessed objects
perl-Object-WithParams-0.3-alt1.noarch.rpm An Object With Params
perl-Object-Wrapper-0.05-alt1.noarch.rpm Sanity-check wrapper for objects
perl-Object-eBay-0.5.1-alt1.noarch.rpm Object-oriented interface to the eBay API
perl-ObjectDB-3.28-alt1.noarch.rpm Lightweight Object-relational mapper
perl-ObjectDB-InflateColumn-0.01-alt1.noarch.rpm perl module ObjectDB-InflateColumn
perl-ObjectDBI-0.15-alt1.noarch.rpm Perl Object Persistence in an RDBMS using DBI