Venus::Role::Pluggable - Pluggable Role
Pluggable Role for Perl 5
package Example::Plugin::Password; use Venus::Class; use Digest::SHA (); sub execute { my ($self, $example) = @_; return Digest::SHA::sha1_hex($example->secret); } package Example; use Venus::Class; with 'Venus::Role::Proxyable'; with 'Venus::Role::Pluggable'; attr 'secret'; package main; my $example = Example->new(secret => rand); # $example->password;
This package provides a mechanism for dispatching to plugin classes.
To install Venus, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Venus
CPAN shell
perl -MCPAN -e shell install Venus
For more information on module installation, please visit the detailed CPAN module installation guide.