Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garu/business-br-cep
Testa números de CEP (Correios)
https://github.com/garu/business-br-cep
Last synced: 11 days ago
JSON representation
Testa números de CEP (Correios)
- Host: GitHub
- URL: https://github.com/garu/business-br-cep
- Owner: garu
- Created: 2014-10-10T18:03:01.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-10T18:03:18.000Z (about 10 years ago)
- Last Synced: 2024-11-05T21:50:33.127Z (about 2 months ago)
- Language: Perl
- Size: 102 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
Business-BR-CEP version 0.01
This module tests for correct CEP numbers (Brazilian ZIP Code)
USAGE EXAMPLE
use Business::BR::CEP qw( test_cep cep_type cep_region );
print 'ok!' if test_cep( '13165-000' );print 'invalid cep' unless cep_type( $cep ) eq 'logradouro';
use List::MoreUtils qw( any );
print 'address mismatch!'
unless any { $_ eq $given_state } cep_region( $cep );INSTALLATION
To automatically install this module:
cpan Business::BR::CEP
or, if you have cpanm
cpanm Business::BR::CEP
Alternatively, to manually install this module, run the following commands:
perl Makefile.PL
make
make test
make installAlternatively, to install with Module::Build, you can use the following commands:
perl Build.PL
./Build
./Build test
./Build installCOPYRIGHT AND LICENCE
Copyright (C) 2012-2014, Breno G. de Oliveira
This library is free software; you can redistribute it and/or modify
it under the same terms as the Perl 5 programming language itself.