Thiago Berlitz Rondon > MooseX-Types-CPF > MooseX::Types::CPF

Download:
MooseX-Types-CPF-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.02   Source  

NAME ^

MooseX::Types::CPF - CPF type for Moose classes

SYNOPSIS ^

  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' );

DESCRIPTION ^

This module lets you constrain attributes to only contain CPF. No coercion is attempted.

EXPORT ^

None by default, you'll usually want to request CPF explicitly.

AUTHOR ^

Thiago Rondon <thiago@aware.com.br>

Aware TI (http://www.aware.com.br/)

COPYRIGHT ^

This program is Free software, you may redistribute it under the same terms as Perl itself.

syntax highlighting: