X-Git-Url: http://git.freeside.biz/gitweb/?p=Geo-USCensus-Geocoding.git;a=blobdiff_plain;f=Geocoding%2FResult.pm;fp=Geocoding%2FResult.pm;h=4598441f95e21d9caf1e70f206dcd6fe006d2d60;hp=bf595ca1e25d764abb8331f997903a45d491ea1c;hb=9b4059c3f2d0e14bc39f4b2ab2394a5e2e2e92e7;hpb=f81bdf93c112e3222ba9f0be2477fd3403fdc9f5 diff --git a/Geocoding/Result.pm b/Geocoding/Result.pm index bf595ca..4598441 100644 --- a/Geocoding/Result.pm +++ b/Geocoding/Result.pm @@ -2,7 +2,7 @@ package Geo::USCensus::Geocoding::Result; use Moo; # just for attribute declaration -has 'is_match' => ( is => 'rw', default => 0 ); +has 'is_match' => ( is => 'rw', default => sub { 0 } ); foreach ( 'content', 'match_level', 'address', @@ -14,7 +14,7 @@ foreach ( 'content', 'latitude', 'longitude' ) { - has $_ => ( is => 'rw', default => '' ); + has $_ => ( is => 'rw', default => sub { '' } ); } sub censustract {