Thiago Berlitz Rondon

NAME

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

SYNOPSIS

  package Class;
  use Moose;
  use MooseX::Types::CNPJ qw(CNPJ);
  
  has 'cnpj' => ( is => 'ro', isa => CNPJ );

  package main;
  Class->new( cnpj => '00.000.000/0000-00' );

DESCRIPTION

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

EXPORT

None by default, you'll usually want to request CNPJ 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.