1 package Moose::Autobox::Value;
2 use Moose::Role 'with', 'requires';
6 with 'Moose::Autobox::Defined';
9 my ($self, $block) = @_;
21 Moose::Autobox::Value - the Value role
28 # execute a sub on the value
29 print 10->do(sub { $_ * $_ }); # prints 100
33 This is a role to describes a defined (non-reference) Perl value.
47 All complex software has bugs lurking in it, and this module is no
48 exception. If you find a bug please either email me, or add the bug
53 Stevan Little E<lt>stevan@iinteractive.comE<gt>
55 =head1 COPYRIGHT AND LICENSE
57 Copyright 2006 by Infinity Interactive, Inc.
59 L<http://www.iinteractive.com>
61 This library is free software; you can redistribute it and/or modify
62 it under the same terms as Perl itself.