Venus::Role::Accessible - Accessible Role
Accessible Role for Perl 5
package Example; use Venus::Class; with 'Venus::Role::Valuable'; with 'Venus::Role::Accessible'; package main; my $example = Example->new(value => 'hello, there');
This package modifies the consuming package and provides a value attribute as well as get and set methods for modifying the value.
value
get
set
This package provides the following methods:
get() (Any)
The get method gets and returns the value.
Since 0.01
0.01
package main; my $example = Example->new(value => 'hey, there'); my $get = $example->get; # "hey, there"
set(Any $value) (Any)
The set method set the value and returns the value set.
package main; my $example = Example->new(value => 'hey, there'); my $set = $example->set('hi, there'); # "hi, there"
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.