methods - Provide method syntax and autoclean namespaces
use methods; # with signature method foo($bar, %opts) { $self->bar(reverse $bar) if $opts{rev}; } # attributes method foo : lvalue { $self->{foo} } # change invocant name method foo ($class: $bar) { $class->bar($bar) }
This module uses Method::Signatures::Simple to provide named and anonymous methods with parameters, except with a shorter module name.
It also imports namespace::autoclean so the imported method helper function (as well as any imported helper functions) won't become methods in the importing module.
method
invoker, signatures
唐鳳 <cpan@audreyt.org>
To the extent possible under law, 唐鳳 has waived all copyright and related or neighboring rights to methods.
This work is published from Taiwan.
http://creativecommons.org/publicdomain/zero/1.0
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in '唐鳳'. Assuming UTF-8
To install methods, copy and paste the appropriate command in to your terminal.
cpanm
cpanm methods
CPAN shell
perl -MCPAN -e shell install methods
For more information on module installation, please visit the detailed CPAN module installation guide.