Subject: | Error when providing a bad address to Net::UPS->validate_street_address |
Date: | Wed, 20 Aug 2014 23:01:45 -0500 |
To: | bug-Net-UPS [...] rt.cpan.org |
From: | Steve Palm <n9yty [...] n9yty.com> |
When I provide a good address, everything works fine. If I provide a bad one I get an error:
Not a HASH reference at /Library/Perl/5.18/Net/UPS.pm line 580.
Sample:
use Net::UPS;
use Net::UPS::Address;
Net::UPS->live(1);
my $ups = Net::UPS->new($uname, $pword, $akey, { 'ups_account_number' => $acct } );
my $address = Net::UPS::Address->new();
$address->address("123 Smith Dr");
$address->city("Rockford");
$address->state("MI");
$address->postal_code("49341");
$address->country_code("US");
$res = $ups->validate_street_address($address);