perl-Object-Tap-1.000006-alt1.noarch.rpm


Advertisement

Description

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 ftp.altlinux.org
Instead of writing -
my $thing = My::Class->new(...);
$thing->set_foo(1);
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 -
My::App->new(...)->$_tap(...)->run;
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);

Alternatives

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

Requires

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

Provides

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

Download

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] 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-Object-Tap rpm package:
    # sudo apt-get install perl-Object-Tap

Files

Path
/usr/share/doc/perl-Object-Tap-1.000006/LICENSE
/usr/share/perl5/Object/Tap.pm

See Also

Package Description
perl-Object-Tiny-1.08-alt1_15.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_10.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.25-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
Advertisement
Advertisement