MooseX::Types::UUID - UUID type for Moose classes
package Class; use Moose; use MooseX::Types::UUID qw(UUID); has 'uuid' => ( is => 'ro', isa => UUID ); package main; Class->new( uuid => '77C71F92-0EC7-11DD-B986-DF138EE79F6F' );
This module lets you constrain attributes to only contain UUIDs (in their usual human-readable form). No coercion is attempted.
None by default, you'll usually want to request UUID explicitly.
UUID
Jonathan Rockway <jrockway@cpan.org>
<jrockway@cpan.org>
Infinity Interactive (http://www.iinteractive.com/)
This program is Free software, you may redistribute it under the same terms as Perl itself.
To install MooseX::Types::UUID, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Types::UUID
CPAN shell
perl -MCPAN -e shell install MooseX::Types::UUID
For more information on module installation, please visit the detailed CPAN module installation guide.