Moose
view release on metacpan or search on metacpan
ArrayRef[Int] # array or integers
HashRef[Object] # a hash with object values
They can also be nested:
ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
And work with the type unions as well:
ArrayRef[Int | Str] # array of integers of strings
- Better Framework Extendability
Moose.pm is now "extendable" such that it is now much
easier to extend the framework and add your own keywords
and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
section of the Moose.pm docs.
- Moose Snacks!
In an effort to begin documenting some of the various
details of Moose as well as some common idioms, we have
created Moose::Cookbook::Snacks as a place to find
small (easily digestable) nuggets of Moose code.
====
~ Several doc updates/cleanup thanks to castaway ~
lib/Moose.pm view on Meta::CPAN
has 'first_name' => (is => 'rw', isa => 'Str');
has 'last_name' => (is => 'rw', isa => 'Str');
sub full_name {
my $self = shift;
$self->first_name . ' ' . $self->last_name
}
no Moose; # keywords are removed from the Person package
=head1 EXTENDING AND EMBEDDING MOOSE
To learn more about extending Moose, we recommend checking out the
"Extending" recipes in the L<Moose::Cookbook>, starting with
L<Moose::Cookbook::Extending::ExtensionOverview>, which provides an overview of
all the different ways you might extend Moose. L<Moose::Exporter> and
L<Moose::Util::MetaRole> are the modules which provide the majority of the
extension functionality, so reading their documentation should also be helpful.
=head2 The MooseX:: namespace
dXSBOOTARGSAPIVERCHK|5.021006||Viu
dXSBOOTARGSNOVERCHK|5.021006||Viu
dXSBOOTARGSXSAPIVERCHK|5.021006||Viu
dXSFUNCTION|5.005000||Viu
dXSI32|5.003007|5.003007|V
dXSTARG|5.006000|5.003007|poVnu
dXSUB_SYS|5.003007||Viu
edit_distance|5.023008||Vniu
EIGHT_BIT_UTF8_TO_NATIVE|5.023003||Viu
ELEMENT_RANGE_MATCHES_INVLIST|5.023002||Viu
EMBEDMYMALLOC|5.006000||Viu
emulate_cop_io|||xciu
emulate_setlocale|5.027009||Vniu
END|5.003007||Viu
END_EXTERN_C|5.005000|5.003007|pV
endgrent|5.009000||Viu
ENDGRENT_R_HAS_FPTR|5.008000||Viu
ENDGRENT_R_PROTO|5.008000|5.008000|Vn
endhostent|5.005000||Viu
ENDHOSTENT_R_PROTO|5.008000|5.008000|Vn
ENDLIKE|5.009005||Viu
( run in 3.415 seconds using v1.01-cache-2.11-cpan-71847e10f99 )