Object::Tiny::Lvalue - minimal class builder with lvalue accessors
version 1.083
Define a class:
package Foo; use Object::Tiny::Lvalue qw( bar baz ); 1;
Use the class:
my $object = Foo->new( bar => 1 ); printf "bar is %s\n", $object->bar; $object->bar = 2; printf "bar is now %s\n", $object->bar;
This is a clone of Object::Tiny, but adjusted to create accessors that return lvalues.
You probably want to use Object::Properties instead.
Aristotle Pagaltzis <pagaltzis@gmx.de>
This software is copyright (c) 2015 by Aristotle Pagaltzis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Object::Tiny::Lvalue, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Object::Tiny::Lvalue
CPAN shell
perl -MCPAN -e shell install Object::Tiny::Lvalue
For more information on module installation, please visit the detailed CPAN module installation guide.