Subject: | undef value is returned |
The following test illustrates when the undef is being returned as the $map value. I did not see in the documentation a mention of in what cases it's possible for for undef to be returned.
use Test::More qw/no_plan/;
# #9 MARTINS BEACH
# P.O. BOX 594
# HALF MOON BAY, CA 94019
require WebService::StreetMapLink;
my $map = WebService::StreetMapLink->new(
country => 'usa',
address => "#9 MARTINS BEACH, P.O. BOX 594",
city => "HALF MOON BAY",
state => "CA",
postal_code => "94019",
subclass => 'MapQuest',
);
ok((defined $map), " object is defined");