if (length $link->{LatitudLongitud} > 5) { if (!$seen->{$link->{LatitudLongitud}}) { push @{$GoogleMaps::records->{$link->{LatitudLongitud}}}, $link; $seen->{$link->{LatitudLongitud}} = 1; # make sure we set this, so we know its been seen already! } else { push @{$GoogleMaps::records->{$link->{LatitudLongitud}}}, $link; } } if (length $link->{LatitudLongitud02} > 5 && $link->{LatitudLongitud} ne $link->{LatitudLongitud02}) { if (!$seen->{$link->{LatitudLongitud02}}) { push @{$GoogleMaps::records->{$link->{LatitudLongitud02}}}, $link; $seen->{$link->{LatitudLongitud02}} = 1; # make sure we set this, so we know its been seen already! } else { push @{$GoogleMaps::records->{$link->{LatitudLongitud02}}}, $link; } }