MooseX::Types::CPF - CPF type for Moose classes
package Class; use Moose; use MooseX::Types::CPF qw(CPF); has 'cpf' => ( is => 'ro', isa => CPF ); package main; Class->new( cpf => '000.000.000-00' );
This module lets you constrain attributes to only contain CPF. No coercion is attempted.
None by default, you'll usually want to request CPF explicitly.
CPF
Thiago Rondon <thiago@aware.com.br>
<thiago@aware.com.br>
Aware TI (http://www.aware.com.br/)
This program is Free software, you may redistribute it under the same terms as Perl itself.
To install MooseX::Types::CPF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Types::CPF
CPAN shell
perl -MCPAN -e shell install MooseX::Types::CPF
For more information on module installation, please visit the detailed CPAN module installation guide.