invoker

Implicit invoker, sort of
Download

invoker Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Chia-liang Kao
  • Publisher web site:
  • http://search.cpan.org/~clkao/

invoker Tags


invoker Description

Implicit invoker, sort of invoker is a Perl module that enables the $-> syntax for invoking methods on $self , inspired by Perl6's $.method invocation.The module does not inject the $self variable for you. you are encouraged to use it in conjunction with self, selfvars, , or other similar modules.The following syntax works:$->foo( .. args ...)$->foo$->$method_name$->$method_name( .. args ...)SYNOPSIS use invoker; sub foo { my $self = shift; $->bar; # calls $self->bar; } # use Method::Signatures::Simple # method { # $->bar # ditto # } Requirements: · Perl


invoker Related Software