MooseX::Types::Data::GUID - Data::GUID related constraints and coercions for Moose
Export Example:
use MooseX::Types::Data::GUID qw(TimeZone); has guid => ( isa => GUID, is => "rw", coerce => 1, ); Class->new( guid => "C6A9FE9A-72FE-11DD-B3B4-B2EC1DADD46B");
Namespaced Example:
use MooseX::Types::Data::GUID; has guid => ( isa => 'Data::GUID', is => "rw", coerce => 1, ); Class->new( guid => "C6A9FE9A-72FE-11DD-B3B4-B2EC1DADD46B");
This module packages several Moose::Util::TypeConstraints with coercions, designed to work with Data::GUID.
Guillermo Roditi (groditi) <groditi@cpan.org>
Copyright (c) 2008 Guillermo Roditi. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install MooseX::Types::Data::GUID, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Types::Data::GUID
CPAN shell
perl -MCPAN -e shell install MooseX::Types::Data::GUID
For more information on module installation, please visit the detailed CPAN module installation guide.