package WWW::Correios::CEP;
use strict;
use warnings;
use LWP::UserAgent;
use JSON;
our $VERSION = 1.044;
use Encode;
use utf8;
sub new {
my ( $class, $params ) = @_;
my $this = {
k the outcome of the response
if ( $res->is_success ) {
$this->_parseJSON( \@result, $res->content, $as_html_tree );
}
else {
$resu
turn wantarray ? @result : $result[0];
}
sub _parseJSON {
my ( $this, $address_ref, $json, $as_html_tree ) = @_;
my $obj = from_json($json);
for my $p ( @{ $obj->{dados} || [] } ) {